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.sh
inside the VM as root. - Run
ansible-playbook shibboleth.yml
for Apache & Shibboleth setup. - Run
ansible-playbook demosp.yml
for 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.py
andnewrelic.ini
from/home/demosp
to/home/demosp/demosp
. - Check that the branch is correct.
- Run Django
migrate
,collectstatic
andcompress
. - Run
buildout
andbuildout -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.ini
from/home/demosp
to/home/demosp/demosp
. - Check that the branch is correct.
- Run Django
migrate
,collectstatic
andcompress
. - Run
buildout
andbuildout -c production.cfg
. - Restart Supervisor processes.