If you want to deploy a Node.js application using a graphical interface, cPanel makes the process simple and efficient. With its built-in Node.js support, you can easily configure your application environment, set the root directory, and manage dependencies without using the command line.
This guide walks you through the systematic process of setting up a Node.js app in cPanel, from creating the application to defining your startup file.
Follow the steps:
- Log in to your cPanel account.
- Under the “Software” section, click on “Node.js” App.
- Click the “Create Application” button.
- In the Application Root field, enter the directory path where your application files will be uploaded.
- Choose your desired Application URL and specify the Startup File (if left blank, app.js will be used by default).
- Complete the remaining configuration fields with your preferred settings.
- Once everything is set, click Create to initialise your application.
That’s all it takes to get your Node.js app up and running on cPanel! If you run into any issues, feel free to get in touch with our support team.
Haven’t installed Node.js yet? Learn How to install Node.js on cPanel enabled server