-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Partial set up for AmazonS3 and Dropbox
- Loading branch information
Neil Gehani
committed
Dec 11, 2013
1 parent
0244474
commit 2557bd5
Showing
7 changed files
with
30 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
app_key: <%= ENV["DROPBOX_APP_KEY"] %> | ||
app_secret: <%= ENV["DROPBOX_APP_SECRET"] %> | ||
access_token: <%= ENV["DROPBOX_ACCESS_TOKEN"] %> | ||
access_token_secret: <%= ENV["DROPBOX_ACCESS_TOKEN_SECRET"] %> | ||
user_id: <%= ENV["DROPBOX_USER_ID"] %> | ||
access_type: <%= ENV["DROPBOX_ACCESS_TYPE"] %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
# config/initializers/paperclip.rb | ||
Paperclip::Attachment.default_options[:s3_host_name] = 's3.amazonaws.com' | ||
Paperclip::Attachment.default_options[:url] = ':event_sample_images.s3-website-us-east-1.amazonaws.com' | ||
Paperclip::Attachment.default_options[:path] = '/:class/:attachment/:id_partition/:style/:filename' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters