Skip to content

Commit

Permalink
Merge pull request #22 from takuminnnn/multi-assets-hosts
Browse files Browse the repository at this point in the history
投稿画像のホストを環境変数で指定できるように変更
  • Loading branch information
alotofwe committed Aug 4, 2015
2 parents d1c5fa0 + f343c18 commit 76779ca
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions config/initializers/carrier_wave.rb
@@ -1,11 +1,3 @@
# if Rails.env.production?
# CarrierWave.configure do |config|
# config.fog_credentials = {
# :provider => 'AWS',
# :aws_access_key_id => ENV['S3_ACCESS_KEY'],
# :aws_secret_access_key => ENV['S3_SECRET_KEY'],
# :region => ENV['AWS_REGION']
# }
# config.fog_directory = ENV['S3_BUCKET']
# end
# end
CarrierWave.configure do |config|
config.asset_host = ENV['STORAGE_HOST']
end

0 comments on commit 76779ca

Please sign in to comment.