Define synchronization directories
Synchronization directories allow you to compile, run, and debug files that sit on a remote server.
This task assumes you have added a remote host. You must connect to the remote directory using SSH.
When you define a synchronization directory, you provide a local directory path (on the client machine) and a remote directory path (on the remote host). At the time of setup, the remote directory path must be empty. The initial synchronization will copy the files from the local directory to the remote directory.
Once the synchronization directory is defined, all file modifications must happen in the local directory, and all new files must be added to the local directory. Never edit files directly in the remote directory, as the changes will be lost at the next synchronization; files added directly to the remote directory will be removed at the next synchronization.
Synchronization is a two-step process: the first step synchronizes the files from the client to the server, and the second set synchronizes the files from the server back to the client. The second step - from the server back to the client - is used to bring back the results of an operation, such as a build. For example, compiling a .4gl file results in a .42m file; it is the .42m file that is returned and written to the client.
Synchronization directories do not allow users to share the same set of files in a remote directory, as this solution does not support any form of conflict management or source file merging.
build
,
run
, or debug
), Genero Studio:- Checks whether the files belong to a synchronization directory.
- If the files are part of a synchronization directory, it synchronizes the local directory with the remote directory before executing the operation. When the synchronization is complete, the remote directory is identical to the local directory.
- After the gsmake operation completes on the server (such as a build, compile, or run), a second synchronization is performed from the remote directory to the local directory. When complete, the local directory is identical to the remote directory, with the exception of files specified in the Excluded extensions field.
If Genero Studio does not find a directory with these files, an error is thrown and the operation stops.