Deployment (internal)

Deployment is automated with Fabric (v2).

Here are the main commands

Server bootstrapping

fab -eH xxx.xxx.xxx.xxx bootstrap deploy

Restart services

fab -eH xxx.xxx.xxx.xxx restart

To restart only some services

fab -eH xxx.xxx.xxx.xxx restart --services "squirrel owl"

Updating code

fab -eH xxx.xxx.xxx.xxx deploy

Getting services logs

fab -eH xxx.xxx.xxx.xxx logs

Getting services short status

fab -eH xxx.xxx.xxx.xxx list

Getting services full status

fab -eH xxx.xxx.xxx.xxx status

Remote systemctl call

fab -eH xxx.xxx.xxx.xxx systemctl "cat wolverine"

Remote pip call

fab -eH xxx.xxx.xxx.xxx pip freeze

Generating and pushing documentation

fab -eH xxx.xxx.xxx.xxx docs

Installing SSH keys

From ssh_key_urls entry of the fabric.yml file.

fab -eH xxx.xxx.xxx.xxx ssh_keys

Initialize data for Skunk

fab -eH xxx.xxx.xxx.xxx skunk_cli parse_sia_xml --local-file local/path/to/SIA.xml