If you see it

Live for passion

Debugging With Heroku

Install Heroku Toolbelt, and you should be able to run heroku from your command tool

1
2
3
4
5
6
7
8
$ heroku apps
=== My Apps
xxx
xxxx
$ heroku open --app your-app-name
Opening return-inventory... done
$ heroku logs
$ heroku run rake db:migrate --app return-inventory

Run rails with production settings in order to debug locally

1
2
$ brew install memcached
$ rails s -e production
1
RAILS_ENV=production rake db:migrate

/Applications/Postgres.app/Contents/MacOS/bin/createdb inventory_production

Comments