Skip to content

Instantly share code, notes, and snippets.

@pedrogrande
pedrogrande / carrierwave.rb
Last active October 9, 2017 20:29
Carrierwave initializer file to use Fog and S3 storage for your file uploads
#config/initializers/carrierwave.rb
CarrierWave.configure do |config|
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
#