-
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.
- Loading branch information
Showing
9 changed files
with
59 additions
and
1 deletion.
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
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,24 @@ | ||
# config/initializers/carrierwave.rb | ||
|
||
CarrierWave.configure do |config| | ||
config.storage = :fog | ||
config.fog_credentials = { | ||
# Configuration for Amazon S3 should be made available through an Environment variable. | ||
# For local installations, export the env variable through the shell OR | ||
# if using Passenger, set an Apache environment variable. | ||
# | ||
# In Heroku, follow http://devcenter.heroku.com/articles/config-vars | ||
# | ||
# $ heroku config:add S3_KEY=your_s3_access_key S3_SECRET=your_s3_secret S3_REGION=eu-west-1 S3_ASSET_URL=http://assets.example.com/ S3_BUCKET_NAME=s3_bucket/folder | ||
|
||
# Configuration for Amazon S3 | ||
:provider => 'AWS', | ||
:aws_access_key_id => ENV['AWS_ACCESS_KEY_ID'], | ||
:aws_secret_access_key => ENV['AWS_SECRET_ACCESS_KEY'], | ||
:region => ENV['AWS_REGION'] | ||
} | ||
|
||
|
||
config.fog_directory = ENV['AWS_BUCKET'] | ||
# Generate http:// urls. Defaults to :authenticated_read (https://) | ||
end |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.