From ebc7044743a0551418b53d3620f2ef8b9abebab6 Mon Sep 17 00:00:00 2001 From: Paul Chavard Date: Tue, 21 Aug 2018 15:42:06 +0200 Subject: [PATCH] Get app url from ENV --- config/application.rb | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/config/application.rb b/config/application.rb index deea28ede..8100c4c97 100644 --- a/config/application.rb +++ b/config/application.rb @@ -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