Deploy a Sinatra Application With Capistrano
Step 0: Vendor the sinatra gem (optional).
Step 1: Create a config.ru Rack file in your project’s root directory.
Step 2: Create a Capistrano deploy file.
This file should live at config/deploy.rb.
Step 3: Deploy the app.
Step 4: Get a beer, you’re done!