Merge branch 'develop' into staging
This commit is contained in:
commit
cd82f7b406
3 changed files with 7 additions and 5 deletions
|
@ -68,6 +68,7 @@ set :shared_paths, [
|
||||||
'config/initializers/features.yml',
|
'config/initializers/features.yml',
|
||||||
"config/environments/#{ENV['to']}.rb",
|
"config/environments/#{ENV['to']}.rb",
|
||||||
"config/initializers/token.rb",
|
"config/initializers/token.rb",
|
||||||
|
"config/initializers/urls.rb",
|
||||||
"config/initializers/super_admin.rb",
|
"config/initializers/super_admin.rb",
|
||||||
"config/unicorn.rb",
|
"config/unicorn.rb",
|
||||||
"config/initializers/raven.rb",
|
"config/initializers/raven.rb",
|
||||||
|
|
5
config/initializers/urls.rb
Normal file
5
config/initializers/urls.rb
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
if Rails.env.production?
|
||||||
|
SIADEURL = 'https://api.apientreprise.fr'
|
||||||
|
else
|
||||||
|
SIADEURL = 'https://api-dev.apientreprise.fr'
|
||||||
|
end
|
|
@ -38,10 +38,6 @@ class SIADE::API
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.base_url
|
def self.base_url
|
||||||
if Rails.env.production?
|
SIADEURL
|
||||||
'https://api.apientreprise.fr'
|
|
||||||
else
|
|
||||||
'https://api-dev.apientreprise.fr'
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue