sinatra/sinatra-recipes — Issue #23: Deployment with nginx and Unicorn
Author: knitatoms
Created: 2012-01-10 16:00:37+00:00
State: open

Thanks for the excellent recipes. I just set up a server with the nginx and unicorn recipe.

Everything worked fine except in **config.ru** I needed to change:

require 'myapp.rb'

to

require './myapp.rb'

This is required for Ruby versions 1.9.2 and above. See the top answer here for more info:

http://stackoverflow.com/questions/3973806/heroku-app-fails-to-start-require-no-such-file-to-load-sinatratestapp-l