Deploy a Node.js application from your GitHub repository to your iPanel website. This guide covers the full workflow from cloning to running your Node.js app.
Steps
-
Create a Node.js website in iPanel if you have not already (see the website creation guide).
[screenshot: node.js website created]
-
Navigate to your website management page and click the GIT card on the Home tab.
[screenshot: git card on home tab]
-
Connect your GitHub account if not already connected by clicking Connect GitHub.
[screenshot: connect github button]
-
In the add deployment form, select your GitHub Account, choose your Node.js repository, and select the branch to deploy.
[screenshot: add deployment form with node.js repo selected]
-
Click Clone to download the repository to your server.
[screenshot: clone button]
-
After cloning, click Deploy and confirm the deployment.
[screenshot: deploy button and confirmation]
-
Go to the Node.js tab and click Install from package.json to install your dependencies.
[screenshot: installing node.js dependencies]
-
Click Restart on the Node.js tab to start your application.
[screenshot: restart button on node.js tab]
package.json includes a start script so iPanel knows how to run your application.