I have simple Sinatra app.
web.rb:
require \'sinatra\'
get \'/\' do
\"Hello\"
end
Gemfile:*
You need a Procfile file alongside your config.ru to tell Heroku how to run your app. Here is the content of an example Procfile:
web: bundle exec ruby web.rb -p $PORT
Heroku Ruby docs on Procfiles
EDIT: Here's a sample config.ru from one of my sinatra/Heroku apps:
$:.unshift File.expand_path("../", __FILE__)
require 'rubygems'
require 'sinatra'
require './web'
run Sinatra::Application
You may need to require sinatra and rubygems for it to work.