-
Notifications
You must be signed in to change notification settings - Fork 0
Application Deployment.
timothyakampa edited this page Nov 3, 2015
·
2 revisions
- Set up ssh keys and ensure the provisioning user account can ssh into the new machine.
- Remove password request for the provisioning user account in
/etc/sudoers
. 3 Install docker on the machine if it's not installed. - Clone the repository into your dev box by running
git clone https://github.com/unicefuganda/necoc.git
- Change current working directory to
<PROJECT_ROOT>/deployment/ansible
- Provision the machine by running
ansible-playbook -i production provision.yaml --extra-vars "ansible_ssh_user=<YOUR_SSH_USERNAME>"
(Ensure that ansible is installed on your dev box). - Deploy the application for the first time by running
ansible-playbook -i production deploy.yaml --extra-vars "api_token=<RAPID_PRO_API_TOKEN> ansible_ssh_user=<YOUR_SSH_USERNAME> email_password=<EMAIL_PASSWORD> clean_db=True local=True load_data=True"
- On your dev box, change current working directory to
<PROJECT_ROOT>/deployment/ansible
- Run
ansible-playbook -i production deploy.yaml --extra-vars "api_token=<RAPID_PRO_API_TOKEN> ansible_ssh_user=<YOUR_SSH_USERNAME> email_password=<EMAIL_PASSWORD> clean_db=False local=True load_data=False"
Note: Ansible deployment scripts have been tested only on Debian Linux distributions.