Multiple connections
With Andock it is straightforward to deploy the same project on different servers if you want for example run production on a separate server than all other environments.
A connection is an ansible inventory file. Connections are stored under project/.andock/connections and should be commited to git.
Step 1: Add a new connection
To add a new connection simple run:
andock connect <name> <domain>
Step 2: Execute an command on a seperate host.
Now you can run any andock command on the new host. (If you don't specify any connection the default connection will be used.)
Example:
Deploy on the production host. (connection name is production):
fin andock @production deploy
Different environments
You can execute an command on an different environment with :environment:
Example 1:
Execute deploy on master environment on production
fin andock @production :master deploy
Example 2:
Execute deploy on master environment on local environment
fin andock :master deploy