Friday, February 25, 2011
Setting up Heroku
Here are the steps I use to set up a heroku.com application. This examples sets up an application name myapp-qa. I also set up myapp-uat, myapp-staging, and myapp-production environments.
1) Create the application on the ruby 1.9.2 stack
heroku create --stack bamboo-mri-1.9.2 myapp-qa --remote heroku-qa
2) Make the application use the qa.rb environment file instead of production.rb
heroku config:add RACK_ENV=qa --app myapp-qa
3) Don't bundle test, development, and cucumber gems
heroku config:add BUNDLE_WITHOUT="test:development:cucumber" --app myapp-qa
4) Push the code
git push heroku-qa master
5) Migrate the database
heroku rake db:migrate --app myapp-qa
Subscribe to Posts [Atom]