Permalink
Browse files

Using config file from env.

  • Loading branch information...
1 parent c9b3093 commit 7f424e649964720b99f244636c86363c00661118 Andrew Kirilenko committed Jul 8, 2012
Showing with 6 additions and 2 deletions.
  1. +3 −1 lib/client.js
  2. +3 −1 src/client.coffee
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -17,7 +17,9 @@ class Client
@options = {}
@load_from_hash('params', options)
- @load_from_config(company, product, options.config_file)
+ @load_from_config(company, product, options.config)
+ @load_from_config(company, product, process.env[company.toUpperCase() + '_' + product.toUpperCase() + '_CONFIG'])
+ @load_from_config(company, product, process.env[company.toUPperCase() + '_CONFIG'])
@load_from_env(company.toUpperCase() + '_' + product.toUpperCase())
@load_from_env(company.toUpperCase())
@load_from_config(company, product, "./.#{company}.json")

0 comments on commit 7f424e6

Please sign in to comment.