Skip to main content
Skip table of contents

Git Integration

Integration

Flow Director has a 3-fold integration with the version control system Git:

  1. App libraries in the System app.

  2. Flow component libraries in user apps.

  3. User apps that are linked to a Git repository.

App Libraries

Changes of App libraries such as the default Flow Director and custom app libraries are automatically pulled from our GitHub repository when the Flow Director platform is updated.

Flow Component Libraries

Changes in flow component libraries are pulled from our GitHub repositories when the app is updated.

User Apps

Changes of user apps linked to a Git repository are pulled from that repository when the app is updated.

Integrate a User App with Git

Linking your app with a Git repository has many advantages as it allows you to collaborate and synchronize all installs of your app while having full versioning. Flow Director supports GitHub, GitLab, and BitBucket. You need access via HTTP. Access via SSH key is not supported.

Steps:

  1. Create your app in System app with Create new App.

  2. Create a Git repository and add a README file (or any other file).

  3. Login to your app.

  4. Click on the Git button in the toolbar:

  5. Enter URL, branch, and either username/password or a personal access token. It depends on the Git provider in which field you must enter the token. GitHub uses the username, GitLab the password field. Bitbucket the password field plus a special URL. Please check their documentation.

  6. Click on SET and wait a moment to merge the repository with your app.

  7. Click on the Git button again, and you have the full Git menu:

8. Click on Commit & Push to Remote to transfer your app to the Git repository:

Congratulations! Your app is now in the Git repository. From now on, every change is tracked by Git.

Note that Flow Director exclusively controls the content of your Git repository. Don’t perform any manual changes!

Working with Git

Updates

Any user app has an update button in the toolbar:

By clicking on it, you can choose to use auto-updates at a particular hour or manual update.

Git Menu

The Git menu (if shown) has several options:

You should see the result of each menu action in the app log.

Pull from Remote

This will pull changes from the remote and merge them into the local repository. If you have had local changes, Flow Director will reject the pull, and you need to revert first. We took this approach to avoid accept/merge dialogs and exposing internal files. It works best when only one person applies changes to an app at a time and not multiple people simultaneously.

Commit & Push to Remote

This will commit your local changes and push them to the remote repository.

Revert local Changes

This will revert all changes you made to your local repository since the last commit.

Unlink from Remote

This unlinks the app from the Git repository.


JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.