Before starting:
- Development: Run
vagrant up. - Production: Clone https://code.haltu.net/s-velmu/ansible-trial-velmu-app to
/srv/ansible.
Server deployment:
- Configure credentials in
/srv/ansible/group_vars/vault. - Run
/srv/ansible/ansible.shinside the VM as root. - Run
ansible-playbook shibboleth.ymlfor Apache & Shibboleth setup. - Run
ansible-playbook demosp.ymlfor multiple demo env setup.
Deploy bew:
- Switch to user bew.
- Clone https://code.haltu.net/s-velmu/trial-velmu-app to
/home/bew/bew. - Copy
local_settings.pyandnewrelic.inifrom/home/demospto/home/demosp/demosp. - Check that the branch is correct.
- Run Django
migrate,collectstaticandcompress. - Run
buildoutandbuildout -c production.cfg. - Restart Supervisor processes.
Deploy demosp:
- Switch to user demosp.
- Clone https://code.haltu.net/s-velmu/trial-velmu-app-demosp to
/home/demosp/demosp. - Copy
local_settings_*.py(five of them) andnewrelic.inifrom/home/demospto/home/demosp/demosp. - Check that the branch is correct.
- Run Django
migrate,collectstaticandcompress. - Run
buildoutandbuildout -c production.cfg. - Restart Supervisor processes.