Commit b0c97d97577c80935c4c4b32e94a2ae0b31014d3

Authored by Rafael Manzo
1 parent fbbbdbd2

Production environment loads kalibro address from file

.gitignore
... ... @@ -19,5 +19,5 @@ coverage
19 19  
20 20 database.yml
21 21 database.yml~
22   -database.yml.sample
  22 +kalibro.yml
23 23 kalibro_cucumber_helpers.yml
24 24 \ No newline at end of file
... ...
config/environments/production.rb
... ... @@ -80,4 +80,8 @@ Mezuro::Application.configure do
80 80  
81 81 # Root URL for ActionMailer
82 82 config.action_mailer.default_url_options = { :host => 'mezuro.org' }
  83 +
  84 + # Kalibro URL
  85 + KalibroGem.configure_with(Rails.root.join('config', 'kalibro.yml'))
  86 + puts Rails.root.join('config', 'kalibro.yml')
83 87 end
... ...
config/kalibro.yml.sample 0 → 100644
... ... @@ -0,0 +1,2 @@
  1 +# Configuration loaded only for production environment
  2 +address: http://localhost:8080/KalibroService/
0 3 \ No newline at end of file
... ...