How to work with Node.js App

Our Setup Node.js App feature allows for the choosing a specific version of Node.js in order to run the apps using Node.js 6.x, 8.x, or 9.x versions. This function provides ultimate flexibility and features a user-friendly interface that helps you get faster acquainted with the new functionality it offers.

If you wish to create a new application, go to the cPanel >> Setup Node.js App >> Create application.

On the next page you will see the following fields:

It is possible to choose the following parameters:

Node.js version

Application mode (available modes are Production and Development)

Application root (the path to the application on a server that corresponds with its URI. You can enter either the existing folder or specify a new folder that will be created in the root directory of that domain)

Application URL (fill in an HTTP/HTTPS link to the application)

Application startup file (use the NAME.js format)

If you wish to add environment variables, click Add Variable to specify a name and a value.

After the application is created, you will be prompted to the application dashboard.

As soon as the environment is set, you can upload your application files to the application root directory.

In case you need to install some modules, it is possible to do this after entering the virtual environment of the application via SSH. The command for this is mentioned on the application page:

If there are any issues with installing a module, contact our Support team for help.

Comments

We welcome your comments, questions, corrections and additional information relating to this article. Your comments may take some time to appear. Please be aware that off-topic comments will be deleted.

If you need specific help with your account, feel free to contact our Support Team. Thank you.