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

@keybits

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

@zzak
Owner

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

@JohnMurray

You could always do:

$: << ::File.expand_path('../', __FILE__)
require 'myapp'
@zzak 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.