Git and Creatio: File System Mode Setup and Workflow

Источник
en-orig
Mar 25, 2021 Oct 15, 2026
Video preview
Поделиться:

This video demonstrates how to set up Git in file system mode for Creatio development. It covers package descriptors, repository initialization, .gitignore, pushing to GitHub, section creation, and downloading or cloning repositories.

Git and Creatio: File System Mode Setup and Workflow ⏱ 2:39

  • •Git is a version control system that monitors content on disk (e.g., C: drive, Mac, Linux); no folder means nothing to track. It cannot work with Creatio Cloud due to lack of file system access; only local deployments benefit.
  • •Enable debug mode via System Settings > 'debug' checkbox. Access backend (shows debug label) and switch to file system mode by editing web.config in the installation directory: set fileDesignMode from false to true (line ~419) and useStaticFileContent from true to false (line ~469).
  • •In backend > Actions, click 'Download packages to file system' (takes 10–15s; generates 7,000–9,000 files) and 'Compile'. Files appear in Terrasoft.Web/Creatio configuration/PKG and auto-generated/SRC (JavaScript, C#, CSS). Use Visual Studio Code to edit/search. Advantages: use any source code editor, attach debugger to running app pool (Windows).
  • •Use GitHub or GitLab for remote hosting (free accounts, public/private). Basic Git use case: initialize repository and push to remote. Create packages in the PKG folder using Cleo (Cleo init episode three), the modern developer tool. Install Cleo via dotnet tool install Cloe -g; update with Cloe update.
  • Package Descriptor File ⏱ 20:18

  • •A descriptor file (descriptor.json) tells the system that a folder is a package and defines its dependencies; every package contains one.
  • •The custom package depends on all other packages; dependencies are listed explicitly in the descriptor.
  • •To use a package dependency, add it (e.g., product core) to the descriptor; the package dependency diagram shows all packages connecting to custom.
  • •The descriptor can also include a description, such as "package for episode three," and settings are saved to the file system.
  • Uploading and Initializing a Git Repository ⏱ 23:54

  • •The "update packages from file system" action scans the application content for new items and reports differences (e.g., found episode three as a package).
  • •Before using Git, install it from git-scm.com; installation is straightforward (agree to licensing, click next).
  • •Git adds options like Git GUI here or Git Bash here to the explorer context menu; Git version 231 was demoed as latest at recording.
  • •A Git repository can be initialized inside episode three or one level up in PKG; initializing in PKG included 237 items (235 related to the package).
  • Using .gitignore and Committing ⏱ 32:42

  • •A .gitignore file, often sourced from GitHub's Visual Studio template, specifies files/directories to exclude (e.g., obj).
  • •Rules can be added to exclude unwanted directories (e.g., base, campaign designer, case service, core forecast, marketing campaign, service model, tracking) so only the episode three directory remains tracked.
  • •The green dot in Visual Studio indicates inclusion; excluding directories reduces the commit from 216 folders to just one.
  • •Use git add and git commit (via Visual Studio Code command palette: Ctrl+Shift+P, then "Git commit") to commit changes; "commit all" was used and asks which package to commit.
  • Pushing to GitHub and Creating Documentation ⏱ 40:18

  • •Git stores the entire repository inside the .git directory, which can be moved around as a representation of the whole repository.
  • •To push to GitHub, create a new repository (e.g., episode three), keep it public, do not initialize, then run git remote add origin, git branch main, and git push -u origin main. Visual Studio shows a badge indicating when a push is needed.
  • •A commit is a finished unit of work; commit messages describe the change (e.g., "added readme.md").
  • •Create a README.md file to add documentation; Visual Studio extensions provide preview, bold text, lists, and links. After creating it, commit and push. GitHub shows commits with green additions and red subtractions, and allows comments for team discussion.
  • Creatio Section Creation and Git Integration ⏱ 50:02

  • •In Creatio, create a new section (e.g., "episode three") via the Section Wizard; page and source code are generated and saved to disk.
  • •If changes are mistakenly added to the custom package, select them and use Actions > Move to another package to move them to the correct package (e.g., episode three).
  • •Generated files include JSON schemas, resource files, localizable strings, and JavaScript for pages. Git works on delete-old/add-new, shown as red/green lines.
  • •Commit changes with Ctrl+Shift+P → Git: Commit → Commit All (e.g., message "added new section") and push via the Git push button.
  • •For cloud-hosted apps, Git cannot connect directly; download a package using the Creatio CLI download command, then commit locally. File system mode still offers the most benefits.
  • Downloading, Cloning, and Releasing Git Repositories ⏱ 60:19

  • •Individual file download: Use the "raw" link on GitHub for a single JS file; use curl or wget to download it directly.
  • •Full repository download: Use the green "Code" button → "Download ZIP" (includes all branches), or better, use git clone <URL> if Git is installed; this downloads the entire package for local access.
  • •Creating releases for customers: To provide a built solution, export the package and upload the ZIP in the Releases section. Example: title "pre-prod", tag version "001", description "basic features only sections included", optional pre-release flag. Customers can download either the source ZIP or the release ZIP from the release page and install it using the common install-from-file approach.
  • •Git basics recap: Git commits any file type (XML, SVG, C#, JavaScript) from local disk to a remote repository. Many features exist beyond this introduction; try the basics first and learn the generated files. The speaker thanks viewers for 1 hour and mentions next week's session will cover what to do with code after it's built.
  • Key Takeaways

  • •Git is a version control system that tracks content on disk; without a folder to monitor, there is nothing for it to track, and it cannot work directly with Creatio.
  • •Every package contains a descriptor file (descriptor.json) that identifies the folder as a package and defines its dependencies.
  • •The 'update packages from file system' action scans the application for new items and reports differences, such as finding a new package.
  • •A .gitignore file, often based on GitHub's Visual Studio template, specifies files and directories like obj to exclude from version control.
  • •To push to GitHub, you create a repository and push; Git stores the entire repository in the .git directory, which can be moved as a representation of the whole repository.
  • Conclusion

    The video covered setting up Git in file system mode for Creatio, including package descriptors, repository initialization, .gitignore usage, pushing to GitHub, creating a section, and downloading or cloning repositories.

    В статье могут быть пропущены важные детали

    Часть ключевой информации в видео показана, а не сказана. Режим Deep анализирует ещё и кадры видео. (код, демонстрация на экране)

    ✨

    AI Perspective

    The video is a technical tutorial, so most claims are procedural instructions rather than externally verifiable facts; the following evaluates claims presented as factual statements about how Git and Creatio work.

    ClaimVerdictComment
    Git cannot work with Creatio Cloud due to lack of file system access.✅ ConfirmedCreatio Cloud restricts direct file system access, making local Git integration impossible.
    Enabling file system mode requires editing web.config (fileDesignMode=true, useStaticFileContent=false).✅ ConfirmedThis is the standard documented method for on-site Creatio deployments.
    Download packages to file system generates 7,000–9,000 files.⚠️ ApproximatePlausible range, but exact count heavily depends on installed packages and version.
    Cleo is the modern developer tool for Creatio package management.✅ ConfirmedCleo (CLI for Creatio) is the officially promoted tool for package operations.
    Every package contains a descriptor.json file defining it and its dependencies.✅ Confirmeddescriptor.json is the mandatory manifest for any Creatio package in file system mode.
    Custom package depends on all other packages; dependencies are explicit.✅ ConfirmedDependencies must be listed in descriptor.json for the system to resolve them correctly.
    The .gitignore file can be sourced from GitHub's Visual Studio template.✅ ConfirmedGitHub provides an official Visual Studio .gitignore template widely used for .NET projects.
    Git stores the entire repository inside the .git directory.✅ ConfirmedThe .git folder contains the full object database and refs; that's fundamental to Git.
    Creating a section via Section Wizard generates code including JSON schemas and JS.✅ ConfirmedCreatio's Section Wizard auto-generates client-side schemas, JS, and resource files.
    For cloud-hosted apps, you cannot connect Git directly; download packages via CLI.✅ ConfirmedThe Creatio CLI download command is the recommended workaround for cloud environments.
    Git works on delete-old/add-new basis, shown as red/green lines.⚠️ ApproximateDescribes diff display, not Git's internal mechanism (which tracks content snapshots).
    Git version 2.31 was demoed as latest at recording time.❓ UnverifiableLikely true at time of recording (March 2021 release), but frame of reference is lost.

    Задать вопрос по видео