Skip to content

How to create a Node.js application

We support deploying Node.js applications via mod_passenger through the Setup Node.js App interface in cPanel:

278_nodejs1.png

Click Create Application and configure the following:

  • Node.js version — Select your desired version
  • Application mode — Development or Production
  • Application root — Directory containing your app files
  • Application URL — The URL your app will be accessible at
  • Application startup file — The entry point for your application

279_nodejs2.png

Once created, you can run npm install if you have a package.json file:

280_nodejs3.png

All your applications are listed under the Web Application section. From here you can stop, restart, edit, and delete your applications:

281_nodejs4.png

For available Node.js versions, see Available Node.js versions. To set up console logging, see Node.js set console log location.