How to deploy a Node.js application on my hosting plan?

Here is how you can easily deploy and manage your application using the tools natively available in your cPanel:

1. Accessing Node.js in cPanel
Instead of the "Node.js Selector," we utilize cPanel’s native Application Manager to handle Node.js deployments. It provides a robust and seamless way to deploy your application directly from your dashboard.

2. Running Node.js Persistently
You do not need to rely on SSH terminal sessions to keep your application running persistently. When you register your application through the Application Manager, our server uses a built-in process manager. This automatically runs your Node.js app persistently in the background, connects it to your domain, and safely handles web traffic on standard ports without extra configuration.

How to Deploy Your Application:

Upload your files: Using the File Manager or FTP, upload your Node.js application files to a folder in your account (e.g., outside of the public_html folder for better security). Since you do not have SSH access, please ensure you build your app locally and upload your node_modules folder along with the rest of your files.

Set the entry file: Ensure your main application file (your starting script) is named app.js, as this is the default file the Application Manager looks for to launch your app.

Register the App: Log into your cPanel.

  • Scroll down to the Software section and click on Application Manager.
  • Click Register Application.
  • Fill out the form (Name, select your domain, and provide the path to your application folder).
  • Click Deploy.

Once deployed, the server will automatically start your application and keep it running in the background!

Please feel free to contact us if you need more information, assistance or support.

Was this answer helpful?

 Print this Article

Also Read

I uploaded my HTML files, but I am still seeing your default page?

Your main file (web page) must be named as index.*  Example: "index.html",...

Installing a React website on a standard cPanel hosting

Installing a React website on a standard cPanel hosting account involves creating a production...

Can you migrate/move my web site for me from my existing host for FREE?

Yes, we can do this for you for FREE. Simply contact our support department with the following...

Do you allow wildcard subdomains so that anything.mydomain.com points to mydomain.com?

Yes wildcard sub-domains are allowed and *.yourdomain.com can point to yourdomain.com. Simply...

Can I make or use my own PHP or PERL scripts?

Yes, you can make and use your own or any 3rd-party scripts without any problems. We also offer...