ruby - Passenger Rack app 'cannot infer basepath' -


I have a simple config.ru file for my Sinatra app.

  requires 'sinatra' to run 'app'. Sinatra :: Application  

However, the passenger has failed with the error No such file to load - App . I tried to use 1.9 method need_relative , but can no longer guess the basepath .

I'm currently using a very Hiimee code> File.join (File.dirname (__ FILE__), 'App') , which is just terrible And every time I need a file I do not fashion.

Is Ruby not acting as usual?

There is no one else in the current directory LOAD_PATH in Ruby 1.9.2.

What if your LOAD_PATH and current_direries are not created?


Comments