CLI deployment tool built on top of fabric
pip install -r requirement-fabric.txt
- Copy fabric-config.example.yaml and rename it ot fabric-config.yml
cp fabric-config-example.yml fabric-config.yml
-
Add the host the appropiate configuration
outdev: name: 'outdev-combo01' # SSH hostname user: 'USERNAME' # SSH username api_url: 'https://outdev-kb.acustream.com/knowledgebase/api' # URL to the api for building frontend path: '/usr/local/kb' # Path for project log_path: '/var/log/kb' # Path for log branch: 'DEFAULT_BRANCH_TO_DEPLOY' # DEFAULT_BRANCH_TO_DEPLOY tomcat_user: 'tomcat' # tomcat user
You may add as many host as required
-
Test the connection
fab server:outdev test
This should output
Connection on outdev-combo01: SUCCESS
Which means you have succesfully configured fabdeploy
-
To view the task list
fab --list
This lists out all the task you can perform
Let try view the log from outdev
-
View log
fab server:outdev log
This lists out all the log file, you can type in the log filename to monitor.
- Validation for config