The control panel allows you to manage multiple Node.js web apps and each app can use it's own Node version. Node.js apps will run through the Phusion Passenger web server and application server.
Login to the control panel. If you need help logging into the control panel see: How to log into the web hosting control panel
1. Click on the Setup Node.js App icon (it's found under the Extra Features heading)
2. Click on Create Application
You will be prompted to enter details for your Node.js application. These include:
Node.js version: Select the Node version required by your app. We recommend using a LTS version.
Application mode: Choose between Development or Production mode, depending on your use case.
Application root: Specify the directory where your Node.js app files will be located, this can be a folder located anywhere on your account, e.g. /home/username/domains/domain.com/app.
Application URL: Specify the URL where your app will be visible on your site, e.g. mydomain.com/app
Application startup file: Specify the index file for your app, e.g. app.js
Passenger log file: Location of the Phusion Passenger web server log file. Application errors will be logged here.
3. Click Create
The server will now install a simple hello world app that outputs the text "It works!". Visit the Application URL that you specified above in your web browser to confirm that Node.js is working.
4. Delete the test app files and then upload your own application files into the Application root directory that you specified above, you can do this using the File Manager or FTP/SFTP
5. If your app contains a package.json file then click the Run NPM Install button to install dependancies