Skip to content

Instantly share code, notes, and snippets.

@tjsingleton
Created July 9, 2013 14:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tjsingleton/5957780 to your computer and use it in GitHub Desktop.
Save tjsingleton/5957780 to your computer and use it in GitHub Desktop.
require_relative in config.ru
require_relative './mylib'
run ->(env){ [200, {}, ['']] }
# I'm just required
rackup
#=> /Users/tjsingleton/tmp/rack_relative/config.ru:1:in `require_relative': cannot infer basepath (LoadError)
@liul85
Copy link

liul85 commented Sep 3, 2014

Update your ruby version to 2.1.0. will be fixed.

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