Skip to content

How do I run a Node.js application? Print

  • node.js, nodejs, javascript, app
  • 0

You can run a Node.js app on your hosting alongside your website or instead of it.

  1. Upload your app with the File Manager or Git.
  2. In the control panel, click your domain and open Node.js from the Dashboard (or Get Started) tab.
  3. Set the Node.js Version, Application Root (the folder with package.json) and Application Startup File (for example app.js).
  4. Click Enable Node.js, then NPM install to install dependencies.
  5. Click Restart App after each change.
Node.js settings

Use the Environment tab for settings such as API keys, and Run Node.js commands for scripts like npm run build.

Set the document root to your app's public folder, not the app folder itself, so your source code cannot be downloaded.

Was this answer helpful?

« Back