Question
DigitalOcean and Locomotivecms
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×You need the production to be the same as the development block:
when :production
config.storage = :file
config.root = File.join(Rails.root, 'public')
(And you’ll need to comment out the existing production block):
# when :production
# # the following configuration works for Amazon S3
# config.storage = :fog
# config.fog_credentials = {
# provider: 'AWS',
# aws_access_key_id: ENV['S3_KEY_ID'],
# aws_secret_access_key: ENV['S3_SECRET_KEY'],
# region: ENV['S3_BUCKET_REGION']
# }
# config.fog_directory = ENV['S3_BUCKET']