set up redis and heroku config

This commit is contained in:
Beatrice Olivera 2018-08-28 10:56:54 +01:00
parent 31eeee305e
commit 7777c01d3b
2 changed files with 3 additions and 3 deletions

View File

@ -6,5 +6,5 @@ test:
production: production:
adapter: redis adapter: redis
url: <%= ENV.fetch("REDIS_URL") { "redis://localhost:6379/1" } %> url: ${REDISTOGO_URL}
channel_prefix: polyglot_production channel_prefix: polyglot_production

View File

@ -46,8 +46,8 @@ Rails.application.configure do
# Mount Action Cable outside main process or domain # Mount Action Cable outside main process or domain
# config.action_cable.mount_path = nil # config.action_cable.mount_path = nil
# config.action_cable.url = 'wss://example.com/cable' config.action_cable.url = 'wss://polyglot-173.herokuapp.com/cable'
# config.action_cable.allowed_request_origins = [ 'http://example.com', /http:\/\/example.*/ ] config.action_cable.allowed_request_origins = [ '*' ]
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies. # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
# config.force_ssl = true # config.force_ssl = true