Node.js is only available on Reseller hosting packages.
1. To set up Node.js app in your cPanel, firstly, you should log-in to the panel:
- Log in to your account in our Clients Area: https://billing.hostens.com/clientarea
- Choose your Web Hosting(cPanel) service;
- Press the button “Access Control Panel” on the left menu and then the button “Click here to access control panel“.
2. In the “Software” category, choose “Setup Node.js App“:
3. On the Node.js menu you will not see any information to begin with, the only button will be “Create Application“. The application setup display looks as following:
You will have to enter the following details:
- Node.js version: Node.js version selection drop-down menu;
- Application mode: choose between Development and Production modes;
- Application root: you can simply define folder name where you app files will be uploaded;
- Application URL: select the domain and add the URL, which will be used to access the app;
- Application startup file: define the name of startup file (.js) for the app;
- Passenger log file: you can leave the default option.
Once you enter everything, press the button “Create“. Once the App is created, on the cPanel > Setup Node.js App menu, you will see the created app, and some functions to manage it.
This view simply shows the status of your app (started/stopped), some basic information, and there are some actions:
- Stop/Start aplication;
- Restart application;
- Edit application;
- Delete application.
4. When application is created, assuming you are familiar with the Node.js, you will have to upload your package.json file on the application folder. This is necessary in order to install all included packages in your package.json file. The file should be uploaded on “Application root” folder.
To install these packages, you need to open your “Setup Node.js App” menu, and choose “Edit application”. On the next menu, you will see a button “Run NPM Install“:
Once this is done, you are basically set. Don’t forget to restart the application to apply the changes.