Keeping a node server running on shared hosting

Avatar
  • updated
  • Answered

It's understood that shared hosting doesn't support running a node server (see this post, for instance)

But it turns out you can install node / nvm and run a node server (using an ssh / terminal session) on a port of your choosing, and even use and .htaccess file to open that port to web access.


BUT... Keeping that server running after exiting the terminal session -- haven't figured that out yet.

I tried using pm2 with a crontab, to no avail.  Curious if anyone has any innovative ideas.

Pinned replies
Avatar
anonymous
  • Answer
  • Answered

Hello and thanks for contacting us. There are tools such as GNU Screen that may help. Otherwise, you may be better off using a VPS or Cloud VPS (much cheaper).

Avatar
anonymous
  • Answer
  • Answered

Hello and thanks for contacting us. There are tools such as GNU Screen that may help. Otherwise, you may be better off using a VPS or Cloud VPS (much cheaper).