The location of the database Heroku provides can be found in the environment variable DATABASE_URL. Check the configure-block of toodeloo.rb for an example on how to use this.
Heroku is serving your apps with thin, with means you have all your thin goodness available, such as EventMachine.
Heroku can serve all Rack applications. It looks for a rackup file named 'config.ru' in the root directory. Thus serving a Sinatra app is simple:
require 'toodeloo'
run Sinatra::Application
The whole process of deploying this small Sinatra app was as follows:
$ git clone git://gist.github.com/68277.git toodeloo $ cd toodeloo $ .. unpack gems and add to git repo .. $ heroku create toodeloo $ git remote add heroku git@heroku.com:toodeloo.git $ git push heroku master
That's it. You can see it in action at http://toodeloo.heroku.com