sometimes a restart of the Vector instance is needed, but not a full reinstall of the system...so it would be nice to have an admin function (button) to restart the instance.
Restart should
- Kill node
pkill -f node
- delete logs
- forever log
rm ~/.forever/forever.log
- output log
rm ~/Vector-Production/bundle/output.log
- error log
rm ~/Vector-Production/bundle/error.log
- re-run the forever command to restart node
cd ~/vector-Production/bundle
forever start -l forever.log -o output.log -e error.log main.js