Forum: Ruby on Rails Webrick not showing sql queries any more?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Nauhaie (Guest)
on 2006-05-07 09:46
Hi all,

I updated rails to 1.1.2, and somehow, when I run script/server on a new
rails project, I don't see the sql queries in the console any more... It
was very useful to see them live...

Does any one have any idea why?

Thank you very much!

Nauhaie
Conrad T. (Guest)
on 2006-05-07 10:28
(Received via mailing list)
Hey Nauhaie, when you run script/server within a rails project, it will
run

lighttpd

If you would like to run webrick instead, you'll need to do the
following:

script/server webrick

Finally, if you're wanting to see the SQL that's get executed, then
lighttpd
does the job for you.

Peace,

-Conrad
j`ey (Guest)
on 2006-05-07 14:59
Nauhaie wrote:
> Hi all,
>
> I updated rails to 1.1.2, and somehow, when I run script/server on a new
> rails project, I don't see the sql queries in the console any more... It
> was very useful to see them live...
>
> Does any one have any idea why?
>
> Thank you very much!
>
> Nauhaie

You need to do tail -f log/development.log to see the SQL queries.

j`ey
http://eachmapinject.com

ruby -e 'c,y=(r,s,p=%w(rock scissors
paper))[rand(3)];d={s,{p,0,r,1},p,{r,1,s,0},r,{s,1,p,0}}
until(y=~/(#{r}|#{s}|#{p})/);$><<"#{[r,s]*", "} #{["or",p]*"
"}?\n";y=gets.chomp;end
$><<"You:#{y}\nComp:#{c}\n";$><<"You
#{d[y][c]?(d[y][c]==1?"Win":"Lose"):"Draw"}\n"'
Nauhaie (Guest)
on 2006-05-08 20:33
Thank you very much! It works perfectly :-)

Nauhaie
This topic is locked and can not be replied to.