forked from smartchicago/foodborne
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Consolidated and restructured the settings file.
- Loading branch information
Showing
7 changed files
with
19 additions
and
19 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ | |
/tmp | ||
|
||
# Local settings | ||
/config/settings_development.yml | ||
/config/settings.yml | ||
|
||
# Misc | ||
.DS_Store |
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 +1,3 @@ | ||
SETTINGS = YAML.load_file("#{Rails.root}/config/settings_#{Rails.env}.yml") | ||
# Load the settings file, or grab them from ENV | ||
settings_file = "#{Rails.root}/config/settings.yml" | ||
SETTINGS = File.exist?(settings_file) ? YAML.load_file(settings_file) : ENV |
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,6 @@ | ||
Twitter.configure do |config| | ||
config.consumer_key = SETTINGS["twitter"]["consumer_key"] | ||
config.consumer_secret = SETTINGS["twitter"]["consumer_secret"] | ||
config.oauth_token = SETTINGS["twitter"]["access_token"] | ||
config.oauth_token_secret = SETTINGS["twitter"]["access_secret"] | ||
config.consumer_key = SETTINGS["TWITTER_CONSUMER_KEY"] | ||
config.consumer_secret = SETTINGS["TWITTER_CONSUMER_SECRET"] | ||
config.oauth_token = SETTINGS["TWITTER_ACCESS_TOKEN"] | ||
config.oauth_token_secret = SETTINGS["TWITTER_ACCESS_SECRET"] | ||
end |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# SETTINGS | ||
# Copy the contents of file into a new file named "settings.yml", | ||
# and fill in your Open 311 and Twitter API keys | ||
|
||
OPEN_311_KEY: <insert 311 api key here> | ||
|
||
TWITTER_CONSUMER_KEY: <insert consumer key here> | ||
TWITTER_CONSUMER_SECRET: <insert consumer secret here> | ||
TWITTER_ACCESS_TOKEN: <insert access token here> | ||
TWITTER_ACCESS_SECRET: <insert access secret here> |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.