info@imbra.co.zm
Docs FAQs Contact Support Careers

How to setup a Node.js App - ipanel

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:

  1. In the Main menu select Sites.
  2. Select the required site and click on the Website files button. 


  1. On the File Manager form that opens, click Upload.
  2. Select where you want to upload the files from:
  3. Local computer file – click on Choose file or move the necessary files to the drag-and-drop area;
  4. File URL on remote server:
  5. URL – a link to the file to be uploaded, for example, http://example.com/dir/file.html;
  6. Имя файла – 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.
  7. Make sure package.json и server.js contain the correct values for your project.
  8. Click on Back to the list of websites arrow.
  9. Click on ““ and select Npm install.
  10. 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.
  11. After installation is complete, click on the ““ button and select Restart (Node.js).
  12. The project will be restarted; the Node.js icon will turn green, which means the project is working properly. 


Comments

No comments yet.

Add a comment
Ctrl+Enter to add comment