Created
October 5, 2010 19:43
-
-
Save jimwhimpey/612194 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# Fresh ruby 1.9.2, rubygems 1.3.7 and Sinatra 1.0 installs on OS X | |
# This is the contents of test.rb: | |
require 'rubygems' | |
require 'sinatra' | |
get '/' do | |
haml :test | |
end | |
# When I run `ruby test.rb` I just get a new command prompt, no running Sinatra. | |
yeah that doesn't work on 1.9 so it seems, I never noticed because I always use thin start
$ echo "require 'app'; run Sinatra::Application" > config.ru
$ thin start
Yeah, that works. Seems to auto reload too!
Apparently it's a known issue that's been fixed in master: http://github.com/sinatra/sinatra/issues/issue/50
well there ya go.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Tried rolling back sinatra versions and tried using the 1.0 betas. No difference.