Skip to content

Commit

Permalink
Merge pull request #12 from karlentwistle/feature/s3_env_variable
Browse files Browse the repository at this point in the history
Extract S3 bucket as ENV variable
  • Loading branch information
Karl Entwistle authored Nov 28, 2016
2 parents ab0c1fb + 42f3f4d commit 9cf5b2b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ ADMIN_PASSWORD=foobar
AWS_ACCESS_KEY_ID=abc123
AWS_SECRET_ACCESS_KEY=abc123
AWS_REGION=eu-west-1
AWS_S3_BUCKET=labio-wedding

MAILGUN_DOMAIN="example.com"
MAILGUN_USERNAME="[email protected]"
Expand Down
2 changes: 1 addition & 1 deletion config/initializers/carrierwave.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
:aws_secret_access_key => ENV['AWS_SECRET_ACCESS_KEY'],
:region => ENV['AWS_REGION']
}
config.fog_directory = "labio-wedding"
config.fog_directory = ENV['AWS_S3_BUCKET']
end

0 comments on commit 9cf5b2b

Please sign in to comment.