Get app url from ENV

This commit is contained in:
Paul Chavard 2018-08-21 15:42:06 +02:00
parent ebe3be40fa
commit ebc7044743

View file

@ -29,13 +29,7 @@ module TPS
config.assets.paths << Rails.root.join('app', 'assets', 'fonts')
config.assets.precompile += %w(.woff)
if Rails.env.production?
URL = "https://www.demarches-simplifiees.fr/"
elsif Rails.env.staging?
URL = "https://dev.demarches-simplifiees.fr/"
else
URL = "http://localhost:3000/"
end
URL = ENV['APP_HOST'] || "http://localhost:3000/"
config.active_job.queue_adapter = :delayed_job