aboutsummaryrefslogtreecommitdiffstats
path: root/config/environments
diff options
context:
space:
mode:
authorteddywing2017-08-01 17:54:02 +0200
committerGitHub2017-08-01 17:54:02 +0200
commit8774b48a41779248d58c78eb305ce1c579c82708 (patch)
tree4fb5b465225565b258ecb5e62c0e965637cf052c /config/environments
parent84d73a0b872b078ae5b73e2f8f2db2bb304622c2 (diff)
parent1f09ead58c9c603e9d767781ceb82859b2393f49 (diff)
downloadchouette-core-8774b48a41779248d58c78eb305ce1c579c82708.tar.bz2
Merge pull request #48 from af83/1726-WorkbenchImport-for-multi-Netex-import
1726 workbench import for multi netex import
Diffstat (limited to 'config/environments')
-rw-r--r--config/environments/development.rb23
-rw-r--r--config/environments/test.rb1
2 files changed, 14 insertions, 10 deletions
diff --git a/config/environments/development.rb b/config/environments/development.rb
index 59cb9eefa..ab4a29a3e 100644
--- a/config/environments/development.rb
+++ b/config/environments/development.rb
@@ -61,15 +61,17 @@ Rails.application.configure do
config.reflex_api_url = "https://pprod.reflex.stif.info/ws/reflex/V1/service=getData"
config.codifligne_api_url = "https://pprod.codifligne.stif.info/rest/v1/lc/getlist"
- # config.chouette_authentication_settings = {
- # type: "database"
- # }
- config.chouette_authentication_settings = {
- type: "cas",
- cas_server: "http://stif-portail-dev.af83.priv/sessions"
- }
- config.stif_portail_api =
- {
+ if Rails.env.development? && ENV['NO_VPN']
+ config.chouette_authentication_settings = {
+ type: "database"
+ }
+ else
+ config.chouette_authentication_settings = {
+ type: "cas",
+ cas_server: "http://stif-portail-dev.af83.priv/sessions"
+ }
+ end
+ config.stif_portail_api = {
key: "Ohphie1Voo6the5hohpi",
url: "http://stif-portail-dev.af83.priv"
}
@@ -80,7 +82,8 @@ Rails.application.configure do
config.portal_url = "http://stif-boiv-staging.af83.priv"
# IEV url
- config.iev_url = "localhost:8080"
+ config.iev_url = ENV.fetch('IEV_URL', 'http://localhost:8080')
+ config.rails_host = ENV.fetch('FRONT_END_URL', 'http://localhost:3000')
# file to data for demo
config.demo_data = "tmp/demo.zip"
diff --git a/config/environments/test.rb b/config/environments/test.rb
index a6db12006..b3312be4a 100644
--- a/config/environments/test.rb
+++ b/config/environments/test.rb
@@ -62,6 +62,7 @@ Rails.application.configure do
# Reflex api url
config.reflex_api_url = "https://195.46.215.128/ws/reflex/V1/service=getData"
+ config.rails_host = "http://www.example.com"
# file to data for demo
config.demo_data = "tmp/demo.zip"