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.
Ecf21acef6f0e0d734051c7392207d2f?d=identicon&s=25 Nauhaie (Guest)
on 2006-05-07 07: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
40db9e75b3f5899258e3bdc0c9210154?d=identicon&s=25 Conrad Taylor (Guest)
on 2006-05-07 08: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
6dab365a82517fb694650a57ee88e4a4?d=identicon&s=25 j`ey (Guest)
on 2006-05-07 12: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"'
Ecf21acef6f0e0d734051c7392207d2f?d=identicon&s=25 Nauhaie (Guest)
on 2006-05-08 18:33
Thank you very much! It works perfectly :-)

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