To install a Node.js application on your website, you need to upload the application’s files to the server first. You can upload them via FTP you can read more about it in our Knowledgebase entry How to upload files on a www.amberit.org shared hosting using ftp click here or using the File Manager to find out more on How to upload files and content using file manager click here.
To set your application up, go to Websites & Domains and click Node.js. On this screen you can see a number of controls that will help you manage your Node.js application:
NODE_ENVthe environment variable will reflect your choice.
Click Ok when finished
If the application root directory contains the
package.json configuration file, two additional controls become available:
package.jsonfile. Specify the name of the script to run plus any parameters, then click Ok.
If your application files include the
webpack.config.js configuration files, they will be listed in the “Access to Configuration Files” section on the right. Click the name of a configuration file to open it for editing.
Once you have finished configuring your application, click Enable Node.js to start it. The information about your application, including the Node.js version and the application mode will be displayed below the domain name together with the Restart App button.
If, at a later date, you should need to disable Node.js, go to Websites & Domains, click Node.js, and then click Disable Node.js. Disabling Node.js does not affect your settings, and you can reactivate your application at any time.
Video tutorial on how to use Node.js on www.amberit.org shared hosting :