Insert excerpt | ||||||||
---|---|---|---|---|---|---|---|---|
|
Overview
PhixFlow provides version control for applications, and any packages they use, using a Git repository. This allows the export and import of an application by version and any packages associated with that application from specific branches within a Git repository.
Version Control
Initial Setup
Local Properties File
In your local.properties file, set the Git Default Path to the folder where snapshots should be saved to.
HTML Comment | ||
---|---|---|
| ||
In the webapp directory, update local.properties with a git directory path e.g., 'git.default.path=C://app//tomcat9//webapps//phixflow//git', and ensure the new empty directory is created. Restart tomcat and start the PhixFlow instance for the git repository to be configured. |
Privileges and Roles
In order to take and restore snapshots, users must either:
- be an Administrator to get full access
- or, be assigned the
, Git Configure, to get full accessInsert excerpt _roles _roles name role nopanel true - or, be assigned the relevant
(s):Insert excerpt _privilege _privilege name privilege nopanel true - Configure Git Repository
- Create Snapshot for Git
- Restore Snapshot from Git
- View Git History
Creating an Application Snapshot
These are the steps to create a snapshot version of your application. For creating a snapshot of a package, the steps are similar and can be found by right-clicking on the package in the Repository.
- Right-click on an application (or package) in the Repository and select
Insert excerpt _version_control _version_control nopanel true - In the sub-menu, choose
Insert excerpt _version_control _version_control name snapshot nopanel true
- On the Take Snapshot window, provide the following:
- Name: A useful name that identifies this version
- Description: A useful description that identifies this version
- Application: This is a read-only field containing the application's name
- Packages: This is a list of all packages used by the application
- These packages can be included in the snapshot by clicking the tick box
- Select Take Snapshot
- On the Take Snapshot window, provide the following:
- PhixFlow will take a snapshot export of your application and save it to your Git server folder, found in the PhixFlow webapps folder
- The folder that the snapshot is saved to is defined by folder specified as part of the Initial Setup section above
Restoring from an Application Snapshot
- Right-click on an application (or package) in the Repository and select
Insert excerpt _version_control _version_control nopanel true - In the sub-menu, choose
Insert excerpt _version_control _version_control name restore nopanel true - Alternatively, on the
menu, selectInsert excerpt _administration _administration nopanel true
, then choose either:Insert excerpt _restore_from_snapshot _restore_from_snapshot nopanel true
: lists all applications where a Git version has been previously createdInsert excerpt _application _application nopanel true - or
: lists all packages where a Git version has been previously createdInsert excerpt _packages _packages nopanel true - On the Restore from Snapshot window, select the version to be restored, and click Next
- Select any packages that also require restoring and click Restore
- Alternatively, on the
Note |
---|
If multiple users try to take and restore snapshots at the same time, an error message will display to try again later. |
HTML Comment | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
System ConfigurationIn order to store applications in a Git Repository, the a Git Repos Location must be set. A default value is populated for all new and upgraded systems. If your system has no value, follow the below steps to set this.
Git Repositories
Structure
Creating a New Git Repository
Configuration Export
Configuration Import
Security
|