diff options
| author | Robert | 2017-07-20 16:58:21 +0200 |
|---|---|---|
| committer | Robert | 2017-07-20 16:58:21 +0200 |
| commit | f11826644ecab4aa4217e3e06115b4af396ebd50 (patch) | |
| tree | 2bd87e50d3f6e5074f107dcd131ad1afcbd62193 /config/environments | |
| parent | a1368a9730e20b2e3a85885740e6fb7ffec435ad (diff) | |
| parent | 3fb343af351bfa4691ed3c7eb0930d9bb8d0d7ac (diff) | |
| download | chouette-core-f11826644ecab4aa4217e3e06115b4af396ebd50.tar.bz2 | |
merge conflicts resolved
Diffstat (limited to 'config/environments')
| -rw-r--r-- | config/environments/development.rb | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/config/environments/development.rb b/config/environments/development.rb index 79fec2d35..648a9a82c 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,8 +82,8 @@ Rails.application.configure do config.portal_url = "http://stif-boiv-staging.af83.priv" # IEV url - config.iev_url = "http://localhost:8080" - config.fe_url = "http://localhost:3000" + config.iev_url = ENV.fetch('IEV_URL', 'http://localhost:8080') + config.front_end_url = ENV.fetch('FRONT_END_URL', 'http://localhost:3000') # file to data for demo config.demo_data = "tmp/demo.zip" |
