Created
October 28, 2011 01:38
-
-
Save mattpolito/1321423 to your computer and use it in GitHub Desktop.
Initialize those Settings
This file contains hidden or 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
| CarrierWave.configure do |config| | |
| config.fog_credentials = { | |
| provider: 'AWS', | |
| aws_access_key_id: Settings.aws.access_key, | |
| aws_secret_access_key: Settings.aws.secret | |
| } | |
| config.fog_directory = Settings.aws.bucket | |
| end |
This file contains hidden or 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
| class Settings < Settingslogic | |
| source "#{Rails.root}/config/settings.yml" | |
| namespace Rails.env | |
| end |
This file contains hidden or 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
| defaults: &defaults | |
| use_online_storage?: false | |
| aws: | |
| access_key: longstringkey | |
| secret: supersecret | |
| bucket: some-bucket-name | |
| development: | |
| <<: *defaults | |
| test: | |
| <<: *defaults | |
| production: | |
| <<: *defaults | |
| use_online_storage?: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment