Home > SVN / GIT Web Console
In the JS Editor tool you can use the Shell Console tab in order to specify SVN or GIT commands via a web-based interface.
Erbix supports SVN or GIT commands from a client perspective, which means that you need an external entity providing GIT / SVN repository hosting services in order to interact with it. Google provides SVN hosting for free in the case of open source projects.
Let's assume you've obtained an external SVN repository at svn://svn.example.org/my-project/ and that you can authentify to it using the username user and the password pass and you'd like to have an instance of the code in a local Erbix directory called local-desired-path.
Here's a sample set of commands that you can type in the Erbix Shell console in order to interact with your repository:
SVN: Initial Code Checkout
- Activate the console (go to the Shell Console tab and click the activate button).
-
Execute the command:
svn checkout svn://svn.example.org/my-project/ local-desired-path/ --username=user --password=pass - Deactivate the console (click the deactivate button).
- Switch to the Files tab to confirm that the SVN files appear properly in your account. You can now use the browser-based IDE to modify the code or execute it using Erbix.
SVN: Commiting Changes
- After making modifications to the code using the Erbix JS App Creator web-based IDE, save all the modified files in the Files tab to prevent losing your unsaved changes.
- Activate the console (go to the Shell Console tab and click the activate button).
-
You can see what files got modified by running:
svn status local-desired-path/ -
The letter code in front of each file indicates its status. If you see a question
mark, the file is not present in the SVN repository and you need to add it using
a command such as:
svn add local-desired-path/new-file -
If you'd like to remove a file from the repository, you need to tell SVN to do that
by using a command such as:
svn delete local-desired-path/obsolete-file -
Before sending your changes to the SVN repository, review a diff of your changes:
svn diff local-desired-path/ -
Commit your changes to the SVN repository:
svn commit -m "Log message..." local-desired-path/ --username=user --password=pass - Once the commit finishes, you're done; deactivate the console (click the deactivate button) and return to the Files tab.
