Skip to content

Using Different AWS S3 Buckets on Different Rails Environments

by dkberktas on August 10th, 2010

Below is the process for using different buckets on Amazon S3 with your production and development environments (Paperclip)

1. Add config vars to your Heroku environment  http://blog.heroku.com/archives/2009/4/7/config-vars/

heroku config:add S3_BUCKET=production-bucket-name S3_KEY=8N029N81 S3_SECRET=9s83109d3+583493190

2. Add the same constants to your .profile file

export S3_BUCKET=development-bucket-name
export S3_KEY=888888888
export S3_SECRET=999999999

ps . Blog Post on Heroku about AWS S3 — http://blog.heroku.com/archives/2009/4/7/config-vars/

ps2. and yes this post is also about  heatmap.me which is my pet project for online heatmap generation.

From → english, tech

No comments yet

Leave a Reply

Note: XHTML is allowed. Your email address will never be published.

Subscribe to this comment feed via RSS