Override postgresc connection for jenkins

If TEST_DATABASE is set then the postgres connection is set to that.
Jenkins sets it to the RDS instance that is in that AWS Account
This commit is contained in:
Martyn Inglis
2016-07-22 20:47:50 +01:00
parent 85c7aa4a40
commit a5b8a41ead

View File

@@ -10,7 +10,7 @@ export INVITATION_EXPIRATION_DAYS=2
export NOTIFY_JOB_QUEUE='notify-jobs-queue-test' export NOTIFY_JOB_QUEUE='notify-jobs-queue-test'
export NOTIFICATION_QUEUE_PREFIX='notification_development-test' export NOTIFICATION_QUEUE_PREFIX='notification_development-test'
export SECRET_KEY='secret-key' export SECRET_KEY='secret-key'
export SQLALCHEMY_DATABASE_URI='postgresql://localhost/test_notification_api' export SQLALCHEMY_DATABASE_URI=${TEST_DATABASE:='postgresql://localhost/test_notification_api'}
export VERIFY_CODE_FROM_EMAIL_ADDRESS='no-reply@notify.works' export VERIFY_CODE_FROM_EMAIL_ADDRESS='no-reply@notify.works'
export FIRETEXT_API_KEY="Firetext" export FIRETEXT_API_KEY="Firetext"
export NOTIFY_EMAIL_DOMAIN="test.notify.com" export NOTIFY_EMAIL_DOMAIN="test.notify.com"