-
Notifications
You must be signed in to change notification settings - Fork 342
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Now that 1.0.0 fixes the issue with setting heroku config vars, I’ve updated application.example.yml to allow using different variables based on the environment. I also updated the setup_heroku script to use the figaro command to set the customizable config vars.
- Loading branch information
Moncef Belyamani
committed
Sep 18, 2014
1 parent
ac76142
commit 1ad8731
Showing
5 changed files
with
130 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
# Define the environment variables that should be set in config/application.yml. | ||
# See config/application.example.yml if you don't have config/application.yml. | ||
Figaro.require('API_PATH') unless ENV['API_SUBDOMAIN'].present? | ||
Figaro.require('ADMIN_PATH') unless ENV['ADMIN_SUBDOMAIN'].present? | ||
Figaro.require('DEFAULT_PER_PAGE') | ||
Figaro.require('MAX_PER_PAGE') | ||
Figaro.require_keys('API_PATH') unless ENV['API_SUBDOMAIN'].present? | ||
Figaro.require_keys('ADMIN_PATH') unless ENV['ADMIN_SUBDOMAIN'].present? | ||
Figaro.require_keys('DEFAULT_PER_PAGE', 'MAX_PER_PAGE') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters