From 709da5fb354f9a79db64b131e53cf747cbeb48f3 Mon Sep 17 00:00:00 2001 From: Espen Antonsen Date: Wed, 6 Oct 2010 23:52:46 +0200 Subject: [PATCH] not require mysql2 on heroku. require aws on heroku --- config/environment.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/environment.rb b/config/environment.rb index 9144765..6f9b5dc 100644 --- a/config/environment.rb +++ b/config/environment.rb @@ -16,9 +16,9 @@ Rails::Initializer.run do |config| config.gem "authlogic" config.gem 'mime-types', :lib => 'mime/types' config.gem "carrierwave" - config.gem "mysql2" + config.gem "mysql2" unless ENV['HEROKU'] + config.gem "aws-s3", :lib => "aws/s3" if ENV['HEROKU'] #config.gem "mini_exiftool" - #config.gem "aws-s3", :lib => "aws/s3" config.load_paths += %W( #{RAILS_ROOT}/app/middleware )