diff --git a/.travis.yml b/.travis.yml index 587deac1f..ef9924a14 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 @@ -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' diff --git a/config/environments/production.rb b/config/environments/production.rb index 1726f6b75..610917389 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -101,7 +101,7 @@ Rails.application.configure do # 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 }