On Sun, Aug 25, 2013 at 01:57:10AM -0700, Fernando Segura Gòmez wrote:
> Hi.
> I need help, im very newbie about how deploy my nodejs app in production,i 
> have always worked in localhost, but  i dont know how i can deploy an app 
> and run always, when i run with the command node, and  i close my ssh 
> program, my nodejs app is stopped.
> How i can deploy and keep running my app?

Ubuntu: Upstart
Fedora & Arch: Systemd
SmartOS, Illumos and Solaris: SMF
CentOS 6 and lower, RHEL 6 and lower, most other linuxes: System V style init 
scripts
MacOS X: launchd
Other BSDs: use a simple daemonizing tool and add to /etc/rc or rc.local

Node-based tools: forever, daemonize and I'm sure others I can't think of.

Other tools of various quality: Monit, God, runit, daemontools, screen, dtach, 
tmux

You can often get away with `nohup yourapp & disown` in the shell, and it'll at
least keep it from hanging up when the SSH session ends, but there's more
robust tools above.

Aria

Attachment: pgp4IlMA4gPYa.pgp
Description: PGP signature

Reply via email to