How to get web server to display the server logs

I’m just getting started on a mac and I’m starting the server with ./
script/server, which starts up webrick. I’m used to having the console
then display all the logs as I’m interacting with the application, but
this isn’t happening. Can someone tell me what I need to do to solve
this?

On Apr 26, 8:21 pm, eggman2001 [email protected] wrote:

I’m just getting started on a mac

I’m used to having the console
then display all the logs as I’m interacting with the application,

Console doesn’t know about your Rails logs by default. In the Console
app, you can use File -> Open to select a specific log file for
console to display.

You can also use Terminal. I use the tail -f command with the path
to the log file (e.g., tail -f log/development.log). The -f argument
tells tail to keep running and display anything that gets added to the
file. Use control-c to interrupt tail and get back to the shell
prompt.

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