Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Deployment with nginx and Unicorn #23

Closed
keybits opened this Issue · 2 comments

3 participants

Tom Atkins Zachary Scott John Murray
Tom Atkins

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

Zachary Scott
Owner

I think we better make sure that the 1.8.7 version is still supported, patches welcome :)

John Murray

You could always do:

$: << ::File.expand_path('../', __FILE__)
require 'myapp'
Zachary Scott zzak closed this in ea4dbcb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.