Skip to content

Commit

Permalink
Add Amazon S3
Browse files Browse the repository at this point in the history
  • Loading branch information
Neil Gehani committed Sep 20, 2013
1 parent 6226192 commit 36a1174
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ gem 'jquery-rails'
gem 'devise'
gem 'simple_form', '~> 3.0.0.rc'
gem "paperclip", "~> 3.0"
gem 'aws-sdk'

group :production do
gem 'pg'
Expand Down
7 changes: 7 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ GEM
tzinfo (~> 0.3.37)
arel (4.0.0)
atomic (1.1.14)
aws-sdk (1.18.0)
json (~> 1.4)
nokogiri (< 1.6.0)
uuidtools (~> 2.1)
bcrypt-ruby (3.1.2)
bootstrap-sass (2.3.2.2)
sass (~> 3.2)
Expand Down Expand Up @@ -64,6 +68,7 @@ GEM
mime-types (1.25)
minitest (4.7.5)
multi_json (1.8.0)
nokogiri (1.5.10)
orm_adapter (0.4.0)
paperclip (3.5.1)
activemodel (>= 3.0.0)
Expand Down Expand Up @@ -132,13 +137,15 @@ GEM
uglifier (2.2.1)
execjs (>= 0.3.0)
multi_json (~> 1.0, >= 1.0.2)
uuidtools (2.1.4)
warden (1.2.3)
rack (>= 1.0)

PLATFORMS
ruby

DEPENDENCIES
aws-sdk
bootstrap-sass (~> 2.3.2.2)
coffee-rails (~> 4.0.0)
devise
Expand Down
10 changes: 10 additions & 0 deletions config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,14 @@

#In production, :host should be set to the actual host of your application.
config.action_mailer.default_url_options = { :host => 'localhost:3000' }

# config heroku to us Amazon S3 to store files
config.paperclip_defaults = {
:storage => :s3,
:s3_credentials => {
:bucket => ENV['AWS_BUCKET'],
:access_key_id => ENV['AWS_ACCESS_KEY_ID'],
:secret_access_key => ENV['AWS_SECRET_ACCESS_KEY']
}
}
end

0 comments on commit 36a1174

Please sign in to comment.