Skip to content

Commit

Permalink
Comment out paperclip s3 host
Browse files Browse the repository at this point in the history
  • Loading branch information
Neil Gehani committed Nov 14, 2013
1 parent 23f56e1 commit 68914e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/initializers/paperclip.rb
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# config/initializers/paperclip.rb
Paperclip::Attachment.default_options[:s3_host_name] = 'event_sample_images.s3-website-us-east-1.amazonaws.com'
#Paperclip::Attachment.default_options[:s3_host_name] = 's3.amazonaws.com'
2 changes: 1 addition & 1 deletion lib/tasks/populateimages3.rake
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace :db do
User.all.each do |user|
puts "[DEBUG] uploading images for user #{user.id} of #{User.last.id}"
10.times do |n|
image = open('http://s3.amazonaws.com/event_sample_images').sample
image = image_remote_url('http://s3.amazonaws.com/event_sample_images').sample
description = %w(cool awesome crazy wow adorbs incredible).sample
user.pins.create!(image: image, description: description)
end
Expand Down

0 comments on commit 68914e8

Please sign in to comment.