From ba27e14226c5ca5efa3db85cab604ddc3038dbf7 Mon Sep 17 00:00:00 2001 From: Brenda Wallace Date: Mon, 11 Mar 2019 17:05:50 +1300 Subject: [PATCH] Move mapbox config to env --- config/environments/production.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/config/environments/production.rb b/config/environments/production.rb index 14ceef09d..d7611b26f 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -65,6 +65,7 @@ Rails.application.configure do down_retry_delay: 60 } + # Use a real queuing backend for Active Job (and separate queues per environment) # config.active_job.queue_adapter = :resque # config.active_job.queue_name_prefix = "growstuff_#{Rails.env}" @@ -110,8 +111,8 @@ Rails.application.configure do # this config variable cannot be put in application.yml as it is needed # by the assets pipeline, which doesn't have access to ENV. - config.mapbox_map_id = 'growstuff.i3n2c4ie' - config.mapbox_access_token = 'pk.eyJ1IjoiZ3Jvd3N0dWZmIiwiYSI6IkdxMkx4alUifQ.n0igaBsw97s14zMa0lwKCA' + config.mapbox_map_id = ENV['MAPBOX_ID'] + config.mapbox_access_token = ENV['MAPBOX_ACCESS_TOKEN'] config.active_job.queue_adapter = :sidekiq # Use a different logger for distributed setups.