Node.js deployment guide # Deploy Node.js apps with Express, NestJS, and Fastify on Deplomo Deploy Node.js on Deplomo for Express, NestJS, and Fastify. Connect from Git or the CLI, set build and run commands, configure environment variables and a domain, then deploy your project. Short answer forDeploy a Node.js app For Express and NestJS, connect your project repository to the cloud platform or run `deplomo deploy` Deplomo installs the project dependencies and runs the app in an isolated container. It also provides a custom domain with automatic SSL. For information about hosting, see [Node.js cloud hosting](/products/nodejs) or [Deployment guide](/guides) the product page. Last reviewed:6 September 2026 ## Prepare your project for Deploy a Node.js app Add the project dependency files, `package.json and the npm, yarn or pnpm lockfile` to your Git repository. Default build and run commands for this stack: ``` # Build command npm ci && npm run build # Run command npm start ``` The HTTP server must listen on 0.0.0.0 at the port specified by process.env.PORT. ## Automatic deployment directly from the Git repository - Create a new project and environment in the Deplomo user panel. - Connect the service to the GitHub or GitLab repository and the desired branch. - Set the build and run commands to match your project. - Set the required environment variables, then deploy. - Connect your custom domain in the Domains section and use free SSL. ## Deploy a local folder with Deplomo CLI ``` curl -fsSL https://get.deplomo.com/install.sh | sh deplomo login cd your-project deplomo deploy deplomo logs ``` Use the Deplomo CLI to deploy local code directly without pushing it to Git. On Windows (PowerShell), use `irm https://get.deplomo.com/install.ps1 | iex` instead of the first command. ## Production tips for Node.js - Pin the Node version in the engines field of package.json. - Create a separate service for the worker with its own start command. - Store secrets in environment variables, not in a .env file committed to Git. - Check the health check and startup time before routing live traffic. - Store persistent data and user files on persistent disks or cloud storage. ## Frequently asked questions ### How do I deploy Node.js on Deplomo? To deploy a Node.js app, connect your Express or NestJS project to Git. The platform detects package.json, runs npm install and the build script, then starts the app with npm start. ### How do I deploy a Node.js project with secure environment variables? For a Node.js project, set secret values such as API keys and database connection strings in the dashboard’s environment variables. Your app can then access them through process.env. ### Can Express and NestJS apps use cloud databases? Yes. Add a MongoDB, PostgreSQL, or Redis database, then connect it to your service without manual configuration.