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 24.03.2008 08:55
on 24.03.2008 19:08
On Mon, Mar 24, 2008 at 4:55 AM, Vapor .. <lists@ruby-forum.com> 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 Lavena 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
on 24.03.2008 19:19
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
on 24.03.2008 19:33
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
on 24.03.2008 19:38
...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