Deploy a Node.js application from files | NodeFlux.eu Docs

Upload a small Node.js project, install its dependencies, and start it safely.

Steps

  1. Deploy a Node.js plan that fits the application resource requirements.
  2. Upload your project files through the panel file manager or the service SFTP connection.
  3. Include package.json and a lockfile when your project uses one; never upload node_modules unless support specifically asks for it.
  4. Install dependencies with the command or startup workflow available for the service, preferably using npm ci when a lockfile exists.
  5. Set the startup command to the project entry point, such as npm start or node server.js.
  6. Start the service and inspect logs for missing dependencies, syntax errors, or an incorrect startup command.

Notes

Warning

Never upload .env files containing production secrets to a public repository or attach them to a support ticket.