Skip to content
This repository has been archived by the owner on Mar 24, 2021. It is now read-only.

Commit

Permalink
Switch to using postgres by default on staging.
Browse files Browse the repository at this point in the history
  • Loading branch information
blairboy362 committed Sep 3, 2018
1 parent e5ca167 commit 710ff9f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ env:
- secure: HZPkW81a+OsfFrCCpcuYYBKNIEmejsQlIreVo2AJ1NipBVK8DniqIK+bXGUIQraaqeKXApXknfPepVpyqG3uyzHvkboylooWa7fuoJB4bs9Eb91Qo2AeWjP2fts0EmUX8R76K51n7EwUgk9xemM/bE2e+0FmG5e35JpXEwfm/5I=
# FLOWER_BASIC_AUTH
- secure: Q+McmaCCuUjt4VoXajGzukxJEVZitEnmj8nsWVgD2SchawjFzVO/W/dzMZHjMoU308rZWe0YMIcLO7gKBxmRhaJ8+txHZR3TwodMiOP5XvjsdDjOqlkvqutTtHgw934s8DSLEceU4WvlXlzMf8O1KEr9yAPrg3GUUhjNmEUxTZk=
- DATABASE_ENGINE_STAGING postgres
- DATABASE_ENGINE_PRODUCTION mongodb


before_script:
Expand All @@ -62,13 +64,13 @@ before_deploy:

deploy:
- provider: script
script: APP_SIGNON_API_USER_TOKEN=$APP_SIGNON_API_USER_TOKEN_STAGING APP_SECRET_KEY=$APP_SECRET_KEY_STAGING REDIS_DATABASE_NUMBER=$REDIS_DATABASE_NUMBER_STAGING APP_STAGECRAFT_OAUTH_TOKEN=$APP_STAGECRAFT_OAUTH_TOKEN_STAGING etc/deploy.sh staging
script: APP_SIGNON_API_USER_TOKEN=$APP_SIGNON_API_USER_TOKEN_STAGING APP_SECRET_KEY=$APP_SECRET_KEY_STAGING REDIS_DATABASE_NUMBER=$REDIS_DATABASE_NUMBER_STAGING APP_STAGECRAFT_OAUTH_TOKEN=$APP_STAGECRAFT_OAUTH_TOKEN_STAGING DATABASE_ENGINE=$DATABASE_ENGINE_STAGING etc/deploy.sh staging
skip_cleanup: true
on:
branch: staging

- provider: script
script: APP_SIGNON_API_USER_TOKEN=$APP_SIGNON_API_USER_TOKEN_PRODUCTION APP_SECRET_KEY=$APP_SECRET_KEY_PRODUCTION REDIS_DATABASE_NUMBER=$REDIS_DATABASE_NUMBER_PRODUCTION APP_STAGECRAFT_OAUTH_TOKEN=$APP_STAGECRAFT_OAUTH_TOKEN_PRODUCTION etc/deploy.sh production
script: APP_SIGNON_API_USER_TOKEN=$APP_SIGNON_API_USER_TOKEN_PRODUCTION APP_SECRET_KEY=$APP_SECRET_KEY_PRODUCTION REDIS_DATABASE_NUMBER=$REDIS_DATABASE_NUMBER_PRODUCTION APP_STAGECRAFT_OAUTH_TOKEN=$APP_STAGECRAFT_OAUTH_TOKEN_PRODUCTION DATABASE_ENGINE=$DATABASE_ENGINE_PRODUCTION etc/deploy.sh production
skip_cleanup: true
on:
branch: production
4 changes: 2 additions & 2 deletions etc/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ cycle_app performance-platform-backdrop-read
cf set-env performance-platform-backdrop-read ENVIRONMENT $PAAS_SPACE
cf set-env performance-platform-backdrop-read STAGECRAFT_URL https://performance-platform-stagecraft-$PAAS_SPACE.cloudapps.digital
cf set-env performance-platform-backdrop-read SIGNON_API_USER_TOKEN $APP_SIGNON_API_USER_TOKEN
cf set-env performance-platform-backdrop-read DATABASE_ENGINE mongodb
cf set-env performance-platform-backdrop-read DATABASE_ENGINE $DATABASE_ENGINE
cf push performance-platform-backdrop-read

cycle_app performance-platform-backdrop-write
Expand All @@ -39,7 +39,7 @@ cf set-env performance-platform-backdrop-write STAGECRAFT_URL https://performanc
cf set-env performance-platform-backdrop-write SIGNON_API_USER_TOKEN $APP_SIGNON_API_USER_TOKEN
cf set-env performance-platform-backdrop-write SECRET_KEY $APP_SECRET_KEY
cf set-env performance-platform-backdrop-write REDIS_DATABASE_NUMBER $REDIS_DATABASE_NUMBER
cf set-env performance-platform-backdrop-write DATABASE_ENGINE mongodb
cf set-env performance-platform-backdrop-write DATABASE_ENGINE $DATABASE_ENGINE
cf push performance-platform-backdrop-write

cycle_app performance-platform-backdrop-celery-worker
Expand Down

0 comments on commit 710ff9f

Please sign in to comment.