summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormo k <mo@mokhan.ca>2012-10-06 16:09:31 -0600
committermo k <mo@mokhan.ca>2012-10-06 16:09:31 -0600
commit0256a2e383741c2dba0114316526eb014daeeff5 (patch)
treedf32115db1cdaf218a1c1be0785e60d4cface9e4
parent2ae21b72d78e5939f039c6f026d0ae89b60cb92d (diff)
use local file storage for staging environment instead of s3
-rw-r--r--app/uploaders/avatar_uploader.rb3
-rw-r--r--app/uploaders/image_uploader.rb3
-rw-r--r--app/uploaders/photo_uploader.rb3
3 files changed, 6 insertions, 3 deletions
diff --git a/app/uploaders/avatar_uploader.rb b/app/uploaders/avatar_uploader.rb
index 0dba8c69..dac8dd12 100644
--- a/app/uploaders/avatar_uploader.rb
+++ b/app/uploaders/avatar_uploader.rb
@@ -15,7 +15,8 @@ class AvatarUploader < CarrierWave::Uploader::Base
if Rails.env.production?
storage :fog
elsif Rails.env.staging?
- storage :fog
+ #storage :fog
+ storage :file
elsif Rails.env.development?
storage :file
else
diff --git a/app/uploaders/image_uploader.rb b/app/uploaders/image_uploader.rb
index ee7fa7b3..9973b022 100644
--- a/app/uploaders/image_uploader.rb
+++ b/app/uploaders/image_uploader.rb
@@ -6,7 +6,8 @@ class ImageUploader < CarrierWave::Uploader::Base
if Rails.env.production?
storage :fog
elsif Rails.env.staging?
- storage :fog
+ #storage :fog
+ storage :file
elsif Rails.env.development?
storage :file
else
diff --git a/app/uploaders/photo_uploader.rb b/app/uploaders/photo_uploader.rb
index 3ffc4cef..0bfbaf20 100644
--- a/app/uploaders/photo_uploader.rb
+++ b/app/uploaders/photo_uploader.rb
@@ -7,7 +7,8 @@ class PhotoUploader < CarrierWave::Uploader::Base
if Rails.env.production?
storage :fog
elsif Rails.env.staging?
- storage :fog
+ #storage :fog
+ storage :file
elsif Rails.env.development?
storage :file
else