Please sign in to comment.
fix root path detection under thin/passenger
Fixed how the Sinatra application's path is set. Previously it was derived exclusively from $0, but this was causing problems when running Sinatra under Rack because $0 is the web server (e.g., thin, passenger, etc) and thus Sinatra would incorrectly set things like the default views path. This fix adds a new locate_app_file method that uses a number of techniques to guess the Sinatra application's path.
- Loading branch information...