Hoe stel ik een Node.js-toepassing in DirectAdmin in?

If you want to run a Node.js application, DirectAdmin can host it where your plan includes Node.js support. This guide explains the general steps to create and run a Node.js app from your control panel.

Voordat je begint #

  • Confirm your plan includes Node.js.
  • Have your application files ready to upload.
  • Know your app’s start file and required Node version.

Creating the application #

  1. Log in bij DirectAdmin.
  2. Open de Node.js (Setup Node.js App) tool.
  3. Create a new application, choosing the Node version and application root folder.
  4. Set the application URL and the startup file (such as app.js).
  5. Save to create the app and its environment.

Uploading and installing dependencies #

Upload your application files into the application root, then install dependencies. The Node.js tool typically provides a button or command to run npm install against your package.json, setting up the modules your app needs.

Starting and managing the app #

  • Start the application from the Node.js tool.
  • Restart it after code or dependency changes.
  • Check the logs if it fails to start.

Problemen oplossen #

  • App will not start: confirm the startup file and Node version, and review the logs.
  • Dependencies missing: run npm install again from the app’s environment.
  • Option not present: Node.js may depend on your plan; contact support.

Hulp nodig? #

If your Node.js app will not run, our support team can help troubleshoot over live chat.

Wat zijn je gevoelens