Skip to content

Commit

Permalink
Add production verify stage to TravisCI config (#5621)
Browse files Browse the repository at this point in the history
  • Loading branch information
citizen428 authored and mstruve committed Jan 27, 2020
1 parent 743ac13 commit 6321fba
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,14 @@ env:
- RAILS_ENV=test
- CC_TEST_REPORTER_ID=f39e060a8b1a558ebd8aff75d5b9760bf1ae98f3f85d628ae28814f3c66438cd
- DATABASE_URL=postgres://postgres@localhost/
- APP_PROTOCOL=http://
- APP_DOMAIN=localhost:3000
- TIMBER=dummy
- SEND_LOGS_TO_TIMBER=false
- SENDGRID_USERNAME_ACCEL=dummy
- SENDGRID_PASSWORD_ACCEL=dummy
- HEROKU_APP_URL=practicaldev.herokuapp.com
- SECRET_KEY_BASE=dummydummydummy
branches:
only:
- master
Expand Down Expand Up @@ -48,6 +56,7 @@ script:
- './cc-test-reporter upload-coverage'
- 'bundle exec bundle-audit check --update --ignore CVE-2015-9284'
- yarn build-storybook
- bundle exec rails runner -e production 'puts "App booted successfully"'
deploy:
provider: heroku
api_key: '$HEROKU_AUTH_TOKEN'
Expand Down
2 changes: 1 addition & 1 deletion config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@

# DEV uses the RedisCloud Heroku Add-On which comes with the predefined env variable REDISCLOUD_URL
redis_url = ENV["REDISCLOUD_URL"]
redis_url ||= ApplicationConfig["REDIS_URL"]
redis_url ||= ENV["REDIS_URL"]
DEFAULT_EXPIRATION = 24.hours.to_i.freeze
config.cache_store = :redis_cache_store, { url: redis_url, expires_in: DEFAULT_EXPIRATION }

Expand Down

0 comments on commit 6321fba

Please sign in to comment.