Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Deployment with nginx and Unicorn #23

Closed
keybits opened this Issue Jan 10, 2012 · 2 comments

Comments

Projects
None yet
3 participants

keybits commented Jan 10, 2012

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

Owner

zzak commented Jan 10, 2012

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

You could always do:

$: << ::File.expand_path('../', __FILE__)
require 'myapp'

@zzak zzak closed this in ea4dbcb Mar 16, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment