Monday, 15 September 2014

node.js - nodejs 'forever' just doesn't do anything -



node.js - nodejs 'forever' just doesn't do anything -

i trying run nodejs app on amazon ec2 instance using forever. installed nodejs npm, , ran sudo npm install forever -g. installation didn't homecoming errors, go ahead , seek running app using forever start server.js, won't - no output what-so-ever, not error. tried forever --help , forever, none of them giving me response...

when running app regularly using nodejs - nodejs init.js works expected, need running using forever won't shut downwards when disconnect server.

edit : since problem having nodejs closing when closed terminal session ec2 server, solved using linux nohup command : nohup sudo nodejs server.js & kept nodejs running in kid process after closed terminal window.

thanks help though! :)

i not receiving stdout input forever command , prepare nailed it:

sudo ln -s /usr/bin/nodejs /usr/local/bin/node

hope helps someone.

node.js amazon-ec2 forever

No comments:

Post a Comment