Created
July 9, 2013 14:30
-
-
Save tjsingleton/5957780 to your computer and use it in GitHub Desktop.
require_relative in config.ru
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require_relative './mylib' | |
run ->(env){ [200, {}, ['']] } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# I'm just required |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rackup | |
#=> /Users/tjsingleton/tmp/rack_relative/config.ru:1:in `require_relative': cannot infer basepath (LoadError) | |
So, whats the solution for this?
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
This is because the rackup file is eval'd