A common development scenario, when using a Heroku-hosted Refinery CMS app, is to copy production data to development via the use of
This gem adds a rake task to your Refinery CMS project which copies your production assets stored on s3 onto the local filesystem.
- Mac OS X, Linux, or UNIX.
- A Heroku account (or S3 credentials).
- A Refinery CMS project
Open up your Gemfile and add at the bottom this line:
This gem assumes that your production Heroku app is storing assets on Amazon s3
and that your Heroku app has the following three config vars properly defined:
S3_SECRET ( see http://devcenter.heroku.com/articles/config-vars for more info).
Start by copying your production database to your local database:
To copy all Image and Resource files from S3 you can now run the following:
bundle exec rake refinery:download_s3_assets
If you do not have a Heroku application but you do know the S3 credentials then you can provide these manually as ENV variables:
S3_KEY=key S3_SECRET=secret S3_BUCKET=bucket bundle exec rake refinery:download_s3_assets
Please see MIT-LICENSE for more details.
Copyright (c) 2011 Rounders Consulting Inc.