jpablobr.com

→ Multiple Environments on Heroku

More on: heroku, rails, staging, deploy, Tue Apr 12 00:53:59 +0000 2011

With a production App:

$ heroku addons

It will list your custom addons plus the defaults ones... therefore, in the next command you only need to add the custom addons. (coma separated without spaces!)

$ heroku create --stack bamboo-mri-1.9.2 --remote staging --addons custom_domains:basic,memcache:5mb,newrelic:bronze,sendgrid:free,zerigo_dns:basic
$ heroku config:add RACK_ENV=staging --app {YOUR_STAGING_APP_NAME}
$ git push staging master
$ heroku rake db:migrate --app {YOUR_STAGING_APP_NAME}

Heroku has a good article as well

blog comments powered by Disqus