How to Set Up Node.js on GoAdmio for Beginners

PHP sites run themselves on a hosting panel; a Node.js app is a process that must be started, kept alive and wired to a domain. Here is the beginner path on GoAdmio.

1. Get Node onto the server

Over SSH, install Node.js from your distribution or the official NodeSource packages. Check with node -v and npm -v. GoAdmio also ships a /go/nodejs helper command for Node-related setup; the docs list what it automates.

2. Deploy the app as the account user

Upload or git-clone the app into a folder inside the hosting account, outside the public document root. Install dependencies with npm install, set environment variables in a .env file, and start it once by hand to read any errors on the terminal.

3. Keep it alive

A hand-started node process dies with your SSH session. Use a process manager:

npm install -g pm2
pm2 start app.js --name myapp
pm2 save
pm2 startup

PM2 restarts the app on crashes and at server boot, and pm2 logs myapp becomes your debugging home.

4. Put the domain in front

Visitors should reach https://app.example.com, not :3000. The standard pattern is a reverse proxy: the web server answers on 443 and forwards to Node’s local port. On GoAdmio, adjust the domain’s web template (Web Template Editor) or .htaccess-level proxying for the app, then issue SSL for the name in Security » Free SSL.

5. Operate it

  • Deploys: pull the new code, npm install if dependencies changed, pm2 restart myapp.
  • Logs: pm2 logs, plus the web server logs for proxy errors.
  • Resources: watch the app in Server Management » Process Monitor if memory climbs.

One app, one process manager, one proxy rule: Node on a panel server, tamed. More in the docs and at goadmio.com.

By:

Posted in:


Leave a Reply

Your email address will not be published. Required fields are marked *