First you will need to create a site with Node.js handler check here
On the Sites page, the created website will be added with the Node.js icon in the Parameters column.
Add a Node.js project
Add your Node.js project to the created site by doing the following:
- On the File Manager form that opens, click Upload.
- Select where you want to upload the files from:
- Local computer file – click on Choose file or move the necessary files to the drag-and-drop area;
- File URL on remote server:
- URL – a link to the file to be uploaded, for example, http://example.com/dir/file.html;
- Имя файла – the name of the file to be saved with in the current directory. If you leave this field blank, the file name will be extracted from the URL.
- Make sure package.json и server.js contain the correct values for your project.
- Click on Back to the list of websites arrow.
- Click on “…“ and select Npm install.
- Npm install will install all the specified packages of your project. The installation process is indicated by a blinking Node.js icon in the Parameters column.
- After installation is complete, click on the “…“ button and select Restart (Node.js).
- The project will be restarted; the Node.js icon will turn green, which means the project is working properly.
No comments yet. Login to start a new discussion Start a new discussion