Yep, Forever is able to output both console and error output to log
files.
I use the startup script:
------------------------------------------------------
#! /bin/bash
rm /root/.forever/forever-test1-https.log
rm logs/forever-out-1.log
mv logs/forever-out.log logs/forever-out-1.log
rm logs/forever-err-1.log
mv logs/forever-err.log logs/forever-err-1.log
forever -w -l forever-test1-https.log -o logs/forever-out.log -e
logs/forever-err.log start https.js
------------------------------------------------------
So that I don't have to remember how to kick things off all the time.
NB: The above will result in the script restarting every time you
output to the console or stderr! To stop that behaviour you need to
exclude the log files from being watched by forever.
I also have a debug node script that outputs the log files to the
browser for convenience.
Regards, Julian
On Feb 5, 3:58 pm, Angelo Chen <[email protected]> wrote:
> Hi,
>
> I have two js files run in background under forever, is there a ready
> solution that I can view the console output from the two process?
> either cli or web? thanks,
>
> Angelo
--
Job Board: http://jobs.nodejs.org/
Posting guidelines:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en