Provisioning and Deployment for swsheets. This was done against DigitalOcean but any brand-new Ubuntu trusty release should work.
Even if you aren’t using SWSheets (although how couldn’t you?!), please feel free to use this as an example on provisioning, deploying, and running Elixir Phoenix applications.
- Clone this repository
- Run
ansible-galaxy install -r requirements.yml
- Add your server information to an Ansible inventory file called “production”
- Make a copy of
group_vars
with appropriate values and encrypting it with Ansible Vault. - Run through the steps in docs/initial_setup.md (Sorry, I haven't bothered to put that initial setup in Ansible yet!)
- Run
script/provision
- When you want to deploy, run
script/deploy
All work within this repo is released under a Creative Commons Attribution-NonCommercial 3.0 United States license. Essentially you are welcome to do what you like with this as long as you provide attribution and don’t charge for it.