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

  1. Do the actual deploy. From the opendataservices-deploy directory:
salt-ssh --state-output=mixed -L 'cove-live-ocds-2' state.highstate
  1. Check that the latest commit is shown in the footer of http://standard.open-contracting.org/validator/
  2. 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

  1. Do the actual deploy. From the opendataservices-deploy directory:
salt-ssh --state-output=mixed -L 'cove-360-live' state.highstate
  1. Check that the latest commit is shown in the footer of https://dataquality.threesixtygiving.org/
  2. 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

  1. Do the actual deploy. From the opendataservices-deploy directory:
salt-ssh --state-output=mixed -L 'cove-live-iati' state.highstate
  1. Check that the latest commit is shown in the footer of http://iati.cove.opendataservices.coop/
  2. 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