May First web servers come with the minimal packages needed to run a nodejs web application: nodejs
and npm
.
You can review the currently installed version of Node.js while connected to your server over ssh.
node --version
To install a newer or specific version of Node.js you can install a local version for your web application using Node Version Manager.
All node libraries needed for your web application should be installed locally. First access your web site via secure shell. Then use npm
to install.
First, ensure you can launch your service manually while logged in via ssh.
Next, setup a scheduled job configured to run "forever".
Please ensure your application listens only via localhost. We do not assign port numbers, so please pick a random port number higher than 1024.
To ensure people can access your application, edit your "Web Configuration" via the members control panel. Click "Show advanced settings" and add the following to the settings field (assuming your application is listening on port 8932):
ProxyPass / http://localhost:8932/