Get app url from ENV
This commit is contained in:
parent
ebe3be40fa
commit
ebc7044743
1 changed files with 1 additions and 7 deletions
|
@ -29,13 +29,7 @@ module TPS
|
||||||
config.assets.paths << Rails.root.join('app', 'assets', 'fonts')
|
config.assets.paths << Rails.root.join('app', 'assets', 'fonts')
|
||||||
config.assets.precompile += %w(.woff)
|
config.assets.precompile += %w(.woff)
|
||||||
|
|
||||||
if Rails.env.production?
|
URL = ENV['APP_HOST'] || "http://localhost:3000/"
|
||||||
URL = "https://www.demarches-simplifiees.fr/"
|
|
||||||
elsif Rails.env.staging?
|
|
||||||
URL = "https://dev.demarches-simplifiees.fr/"
|
|
||||||
else
|
|
||||||
URL = "http://localhost:3000/"
|
|
||||||
end
|
|
||||||
|
|
||||||
config.active_job.queue_adapter = :delayed_job
|
config.active_job.queue_adapter = :delayed_job
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue