npm stoped automatically
Hi, I am work on node express js and socket.io.
I started server like: node app.js
after few minutes disconnected server automatically when putty was idle or ctrl+Z or ctrl+C.
How can i run server forever?
Thanks Pokal
Use nodemon module
-----Original Message----- From: "pokal4u" [email protected] Sent: 7/9/2015 9:39 PM To: "Automattic/socket.io" [email protected] Subject: [socket.io] npm stoped automatically (#2174)
Hi, I am work on node express js and socket.io. I started server like: node app.js after few minutes disconnected server automatically when putty was idle or ctrl+Z or ctrl+C. How can i run server forever? Thanks Pokal — Reply to this email directly or view it on GitHub.
Also you can install "byobu" if the system is Linux and run express from within it. That way even when putty is disconnected your node will keep running.
-----Original Message----- From: "pokal4u" [email protected] Sent: 7/9/2015 9:39 PM To: "Automattic/socket.io" [email protected] Subject: [socket.io] npm stoped automatically (#2174)
Hi, I am work on node express js and socket.io. I started server like: node app.js after few minutes disconnected server automatically when putty was idle or ctrl+Z or ctrl+C. How can i run server forever? Thanks Pokal — Reply to this email directly or view it on GitHub.
Use screen
Search For Linux screen... Hf!
send from iPhone
Am 10.07.2015 um 06:39 schrieb pokal4u [email protected]:
Hi, I am work on node express js and socket.io.
I started server like: node app.js
after few minutes disconnected server automatically when putty was idle or ctrl+Z or ctrl+C.
How can i run server forever?
Thanks Pokal
— Reply to this email directly or view it on GitHub.
Bypass screen an go straight to tmux!
For future reference, since this isn't directly related to socket.io it shouldn't go here but rather in StackOverflow or some other Q/A site. This question has actually already been answered several times over the internet, so a simple Google search would do.
I installed nodemon and started with nodemon app.js. but when ctrl+Z again disconnected.
I think this was used for whenever changed code automatically restarted
I use the npm forever: https://www.npmjs.com/package/forever
@pokal4u And why create issue having stackoverflow or google? Pd, close this "issue" please :c
That issue was closed automatically. Please check if your issue is fixed with the latest release, and reopen if needed (with a fiddle reproducing the issue if possible).