Skip to content

Instantly share code, notes, and snippets.

@jimwhimpey
Created October 5, 2010 19:43
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 jimwhimpey/612194 to your computer and use it in GitHub Desktop.
Save jimwhimpey/612194 to your computer and use it in GitHub Desktop.
# 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.
@jimwhimpey
Copy link
Author

Tried rolling back sinatra versions and tried using the 1.0 betas. No difference.

@toolmantim
Copy link

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

@jimwhimpey
Copy link
Author

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

@toolmantim
Copy link

well there ya go.

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