Deployment Notes¶
General Django deployment considerations apply to deploying Cove. We deploy using Apache and uwsgi using this Salt State file.
Before a live deploy¶
Travis tests will fail if a branch isn’t ready to be merged and deployed. This includes if OCDS translations are missing.
How to do a live deploy of CoVE¶
OCDS¶
Do the actual deploy. From the open-contracting-deploy directory:
salt-ssh --state-output=mixed -L 'cove-live-ocds-2' state.highstate
Check that the latest commit is shown in the footer of http://standard.open-contracting.org/review/
Test that the live site is working as expected. From the cove directory:
CUSTOM_SERVER_URL=http://standard.open-contracting.org/ DJANGO_SETTINGS_MODULE=cove_ocds.settings py.test cove_ocds/tests_functional.py -n 4
360Giving¶
Do the actual deploy. From the opendataservices-deploy directory:
salt-ssh --state-output=mixed -L 'cove-360-live' state.highstate
Check that the latest commit is shown in the footer of https://dataquality.threesixtygiving.org/
Test that the live site is working as expected. From the cove directory:
CUSTOM_SERVER_URL=https://dataquality.threesixtygiving.org/ DJANGO_SETTINGS_MODULE=cove_360.settings py.test cove_360/tests_functional.py -n 4
IATI¶
Do the actual deploy. From the opendataservices-deploy directory:
salt-ssh --state-output=mixed -L 'cove-live-iati' state.highstate
Check that the latest commit is shown in the footer of http://iati.cove.opendataservices.coop/
Test that the live site is working as expected. From the cove directory:
CUSTOM_SERVER_URL=http://iati.cove.opendataservices.coop/ DJANGO_SETTINGS_MODULE=cove_iati.settings py.test cove_iati/tests_functional.py -n 4