
Untitled
By: a guest on
May 15th, 2012 | syntax:
None | size: 0.97 KB | hits: 12 | expires: Never
The following changes since commit 33f478089a61e32562180c9b0de8781fc6e00735:
carrier_wave now works with heroku (2011-09-05 04:47:28 +0200)
are available in the git repository at:
git@codeplane.com:elland/pixplx.git carrierwave_heroku
Igor Ranieri Elland (1):
but only uses S3 on production env
app/uploaders/image_uploader.rb | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/app/uploaders/image_uploader.rb b/app/uploaders/image_uploader.rb
index d6e0256..b240acf 100644
--- a/app/uploaders/image_uploader.rb
+++ b/app/uploaders/image_uploader.rb
@@ -9,7 +9,8 @@ class ImageUploader < CarrierWave::Uploader::Base
# Choose what kind of storage to use for this uploader:
#storage :file
- storage :fog
+ storage :fog if Rails.env == "production"
+ storage :file unless Rails.env == "production"
# Override the directory where uploaded files will be stored.
# This is a sensible default for uploaders that are meant to be mounted: