A sample code of Ruby with Sinatra
$ git clone https://github.com/niwasawa/ruby-sinatra-hello-world.git
$ cd ruby-sinatra-hello-world/
$ bundle config set --local path 'vendor/bundle'
$ bundle install
$ bundle exec ruby myapp.rb
Access to http://localhost:8888/
$ git clone https://github.com/niwasawa/ruby-sinatra-hello-world.git
$ cd ruby-sinatra-hello-world
$ heroku create
$ git push heroku master