Permalink
Browse files

Add aws config for paperclip

  • Loading branch information...
fatboypunk committed Mar 29, 2015
1 parent 6f36c34 commit 49e9c5887cfb31fd89466d4254906b73cb9c04cd
Showing with 25 additions and 0 deletions.
  1. +3 −0 .sample.env
  2. +1 −0 Gemfile
  3. +13 −0 Gemfile.lock
  4. +8 −0 config/environments/production.rb
View
@@ -6,3 +6,6 @@ GMAIL_PASSWORD="password"
HELPFUL_URL=https://example.io/incoming_message
HELPFUL_ACCOUNT=helpful_account
SINGLE_TENANT_MODE=false
S3_BUCKET_NAME="s3_bucket_name"
AWS_ACCESS_KEY_ID="aws_access_key_id"
AWS_SECRET_ACCESS_KEY="aws_secret_access_key"
View
@@ -40,6 +40,7 @@ gem "jquery-atwho-rails", "~> 1.0.0" # autocomplete
gem "haml-rails"
gem "audited-activerecord", "~> 4.0"
gem "paperclip", "~> 4.2"
gem "aws-sdk"
gem "redcarpet"
# caching
View
@@ -53,6 +53,15 @@ GEM
audited-activerecord (4.0.0)
activerecord (~> 4.0)
audited (= 4.0.0)
aws-sdk (2.0.33)
aws-sdk-resources (= 2.0.33)
aws-sdk-core (2.0.33)
builder (~> 3.0)
jmespath (~> 1.0)
multi_json (~> 1.0)
multi_xml (~> 0.5)
aws-sdk-resources (2.0.33)
aws-sdk-core (= 2.0.33)
bcrypt (3.1.9)
better_errors (1.1.0)
coderay (>= 1.0.0)
@@ -161,6 +170,8 @@ GEM
hike (1.2.3)
http_accept_language (2.0.1)
i18n (0.7.0)
jmespath (1.0.2)
multi_json (~> 1.0)
jquery-atwho-rails (1.0.0)
jquery-rails (3.1.1)
railties (>= 3.0, < 5.0)
@@ -186,6 +197,7 @@ GEM
momentjs-rails (2.7.0)
railties (>= 3.1)
multi_json (1.10.1)
multi_xml (0.5.5)
neat (1.5.1)
bourbon (>= 3.1)
sass (~> 3.2.19)
@@ -348,6 +360,7 @@ DEPENDENCIES
annotate
apartment (~> 0.26.0)
audited-activerecord (~> 4.0)
aws-sdk
better_errors
binding_of_caller
bitters
@@ -89,4 +89,12 @@
# Use default logging formatter so that PID and timestamp are not suppressed.
config.log_formatter = ::Logger::Formatter.new
config.paperclip_defaults = {
storage: :s3,
s3_credentials: {
bucket: ENV["S3_BUCKET_NAME"],
access_key_id: ENV["AWS_ACCESS_KEY_ID"],
secret_access_key: ENV["AWS_SECRET_ACCESS_KEY"]
}
}
end

0 comments on commit 49e9c58

Please sign in to comment.