socket.io icon indicating copy to clipboard operation
socket.io copied to clipboard

npm stoped automatically

Open pokal4u opened this issue 11 years ago • 9 comments

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

pokal4u avatar Jul 10 '15 04:07 pokal4u

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.

sasankh avatar Jul 10 '15 05:07 sasankh

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.

sasankh avatar Jul 10 '15 05:07 sasankh

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.

dschibait avatar Jul 10 '15 06:07 dschibait

Bypass screen an go straight to tmux!

cchamberlain avatar Jul 10 '15 08:07 cchamberlain

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.

tjhorner avatar Jul 12 '15 01:07 tjhorner

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

pokal4u avatar Jul 13 '15 06:07 pokal4u

I use the npm forever: https://www.npmjs.com/package/forever

tecnogram888 avatar Jul 15 '15 15:07 tecnogram888

@pokal4u And why create issue having stackoverflow or google? Pd, close this "issue" please :c

dsalcedo avatar Jul 31 '15 05:07 dsalcedo

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).

darrachequesne avatar Jan 12 '17 15:01 darrachequesne