Open DannyCork opened 10 years ago
From the README:
If you would like to see all the change activity (URLs for each change) to test that it is actually listening use the --verbose flag:
./anon.coffee --verbose
Better logging would be a good thing, I'll leave this open till we have it.
I start as follows ./anon.coffee &
however the process dies after x hours. I have no logs to read , hence no idea why it died. Logs would be great. Thanks.
How does it die? Are you running on a laptop that goes to sleep? Did you try the --verbose flag?
Temp solution for linux: the most used supervisor for logging&keeping up nodesjs apps for you is "supervisord". It's autonomic. It manage start, stop and autonomous restart if nodejs app crash.
I am now attempting to get some logs to investigate by doing a nohip ./anon.coffee > log &
Remagio thanks must look into this.
@DannyCork once supervisors is deployed you can:
[program:anon]
command = /yourpath-anon/anon.coffee --verbose
directory = /yourpath-anon/
user = user-run-anon
autostart = true
autorestart = true
stdout_logfile = /var/log/supervisor/anon.log
stderr_logfile = /var/log/supervisor/anon_err.log
How can I verify anon is working ?
Imagine anon is running in a country where anonymous edits are few and far between. Anon is running but how do I know it's actually working? I don't see log files, perhaps we should add a log file?
I can see a node process that is spawned. What happens when this process dies, no logs right ?
Maybe there are logs that I'm not seeing ?
Thanks.