Unlike PHP, Node.js applications run as their own persistent process rather than being executed per-request by a web server.
The Basic Steps
Install Node.js on your VPS, upload or clone your application code, install dependencies, and start the app — typically on a specific port that your web server then proxies public traffic to.
Keeping It Running
A process manager like PM2 keeps your app running in the background, automatically restarting it if it crashes and starting it again after a server reboot.
Español
Deutsch