aboutsummaryrefslogtreecommitdiffstats
path: root/config/environments
diff options
context:
space:
mode:
authorRobert2017-07-17 12:11:43 +0200
committerRobert2017-07-17 13:13:29 +0200
commit4f4d43779ed3f9e6d1752dbe00d698bcc1a04966 (patch)
treee53010bc5236edc31a958e25c3773abc3f992cfb /config/environments
parent03c2dcba29f1d6b4a8d22bd091e036fcf5600924 (diff)
downloadchouette-core-4f4d43779ed3f9e6d1752dbe00d698bcc1a04966.tar.bz2
Refs: #3506@1.5h sketching out specs [amend me]
Diffstat (limited to 'config/environments')
-rw-r--r--config/environments/development.rb23
1 files changed, 13 insertions, 10 deletions
diff --git a/config/environments/development.rb b/config/environments/development.rb
index 59cb9eefa..35f697d04 100644
--- a/config/environments/development.rb
+++ b/config/environments/development.rb
@@ -61,17 +61,20 @@ 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"
- }
+ 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"
+ {
+ key: "Ohphie1Voo6the5hohpi",
+ url: "http://stif-portail-dev.af83.priv"
}
# Ext. apps links