Linux From Scratch 6.5, kernel 184.108.40.206
gcc version 4.4.1
Rack uses Thin as the server backend
All gems up to date as per this morning (2010/08/20)
Did you install and recompile all the gems from -rc2 to -p0 ?
Specially the ones dealing with Thin and EventManchine
removing those from the equation, your application still works?
Sinatra's behaviour has appeared to change in the 1.9 compatible
I need to add the following line in my server.rb:
set :run, true
Also the template directory is no longer implicitly 'views', you need to
set it yourself.
set :views, File.dirname(__FILE__) + "/views"
Posted via http://www.ruby-forum.com/.
No, because I never imagined that it might be necessary for an upgrade
from -rc2 to -p0 . But since you suggest it I have now tried removing
all of /usr/*/*ruby*, and re-installing ruby and all of my gems. No
change: all Sinatra apps terminate immediately, no output, exit status
> Specially the ones dealing with Thin and EventManchine
> removing those from the equation, your application still works?
I uninstalled thin and eventmachine and it made no difference. I
assume the expectation was that the apps would fall back to the
I ran "make check" and got one error (a Timeout) and "irb" runs OK, so
the Ruby core seems sound. Are there any other tests I could run?
Maybe something to check the Rack core? (I am afraid I know little
about Rack, I just use Sinatra and assume it will work.)
Has anyone managed to run Sinatra apps on 1.9.2-p0?
> Sinatra's behaviour has appeared to change in the 1.9 compatible
> I need to add the following line in my server.rb:
> set :run, true
> Also the template directory is no longer implicitly 'views', you need to
> set it yourself.
> set :views, File.dirname(__FILE__) + "/views"
Thanks! That was it! But why should Sinatra change its behaviour
between 1.9.2-rc2 -> 1.9.2-p0? Any ideas? I would have said that the
*definition* of *-rc* is "behaviour won't change when you upgrade to
*-p*". Something, somewhere is doing it wrong.
Incidentally, the error message I get when I do not set the views
directory is very strange; Sinatra says:
Errno::ENOENT at /sinatra/index
No such file or directory -
[path to my Sinatra app directory]/<internal:lib/rubygems/views/index.haml
* file: tilt.rb
* location: read
* line: 122
It looks as though the template directory is being set to something
ridiculous, which suggests that setting it explicitly is really a
workaround for a bug.
I'll see what the Sinatra devs say.
Thanks again for your help!
Thank you very much this solved my problem also, executing sinatra code
had no output and nothing happened, after adding that line it started