Skip to content
This repository has been archived by the owner on Feb 18, 2020. It is now read-only.

Commit

Permalink
Added environment variable configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
jairodiaz committed Nov 17, 2013
1 parent a48af5f commit faec507
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
API_HOST=http://localhost:4000
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ group :development, :test do
gem 'jazz_hands'
gem 'capybara'
gem 'launchy'
gem 'dotenv-rails'
#gem 'rubyzip2'
#gem 'selenium-webdriver', "~> 2.37.0"
end
Expand All @@ -77,3 +78,4 @@ gem 'moj_frontend_toolkit_gem', git: 'https://github.com/ministryofjustice/moj_f

# Heroku dependencies
gem 'rails_12factor'

4 changes: 4 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ GEM
debugger-ruby_core_source (1.2.3)
diff-lcs (1.2.4)
diffy (3.0.1)
dotenv (0.9.0)
dotenv-rails (0.9.0)
dotenv (= 0.9.0)
erubis (2.7.0)
execjs (2.0.2)
factory_girl (4.3.0)
Expand Down Expand Up @@ -261,6 +264,7 @@ DEPENDENCIES
capybara
coffee-rails (~> 4.0.0)
coveralls
dotenv-rails
factory_girl_rails
faker
govuk_frontend_toolkit
Expand Down
5 changes: 4 additions & 1 deletion config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,11 @@ class Application < Rails::Application
components/claims-intro
components/claims-usernav
components/claims-progressnav

gov-static/gov-ie.js
)

# Api Configuration
config.api_uri = "#{ENV['API_HOST']}/repossession_claims_api"
end
end

0 comments on commit faec507

Please sign in to comment.