Doesnt show log on command prompt

I have latest version of mongrel installed.
But when I run ‘ruby script/server’ it starts the server and shows
nothing else, like development log it used to show on my previous dev
machine.

Any idea?

On Mon, Mar 24, 2008 at 4:55 AM, Vapor … [email protected] wrote:

I have latest version of mongrel installed.
But when I run ‘ruby script/server’ it starts the server and shows
nothing else, like development log it used to show on my previous dev
machine.

Are you expecting script/server dump information to the console? or in
the log file?

Any idea?

Can you rephrase your question? Is not quite clear what are you
getting and what are you expecting…

Btw, if you plan to post from anonymous posting sites (like
ruby-forum) at least provide a better alias than “Vapor”.


Luis L.
Multimedia systems

Human beings, who are almost unique in having the ability to learn from
the experience of others, are also remarkable for their apparent
disinclination to do so.
Douglas Adams

well actually I used to have a dev machine where it would show
development log on command prompt (console) as I would use the app …
displaying behind the scene info like queries and stuff

but it doesnt do on new machine which is rather fresh…

somebody suggested tail --follow log/development.log

but that takes a separate window, it used to display info right after
ruby script/serve

i hope it makes sense this time

Put this in ~/.irbrc

script_console_running = ENV.include?(‘RAILS_ENV’) &&
IRB.conf[:LOAD_MODULES] &&
IRB.conf[:LOAD_MODULES].include?(‘console_with_helpers’)
rails_running = ENV.include?(‘RAILS_ENV’) && !(IRB.conf[:LOAD_MODULES]
&& IRB.conf[:LOAD_MODULES].include?(‘console_with_helpers’))
irb_standalone_running = !script_console_running && !rails_running

if script_console_running
require ‘logger’
Object.const_set(:RAILS_DEFAULT_LOGGER, Logger.new(STDOUT))
end

It doesn’t have anything to do with Mongrel.

Evan

…if you meant the Rails console. You say ‘console’ and ‘server’
both; I should have read more carefully.

If you want it in the script/server STDOUT you could add something
similar to config/environment.rb.

Evan

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs