A very basic webmachine-ruby example app running with Unicorn/Rack on Heroku
Once the Heroku toolbelt is installed in your development environment, run the following:
$ bundle install
$ foreman start
10:14:22 web.1 | started with pid 50172
10:14:23 web.1 | I, [2013-02-01T10:14:23.144259 #50172] INFO -- : listening on addr=0.0.0.0:5000 fd=11
10:14:23 web.1 | I, [2013-02-01T10:14:23.144360 #50172] INFO -- : worker=0 spawning...
10:14:23 web.1 | I, [2013-02-01T10:14:23.145088 #50172] INFO -- : master process ready
10:14:23 web.1 | I, [2013-02-01T10:14:23.145844 #50173] INFO -- : worker=0 spawned pid=50173
10:14:23 web.1 | I, [2013-02-01T10:14:23.146181 #50173] INFO -- : Refreshing Gem list
10:14:23 web.1 | I, [2013-02-01T10:14:23.242999 #50173] INFO -- : worker=0 ready
You should see "hi" on localhost:5000 (or whatever port your app was started on)
To deploy to heroku:
$ heroku create
$ git push heroku master
That's it!