This tutorial shows how to deploy your Node.js app on Replit so it runs continuously in the cloud on a public URL.
Notes:
- You need a Replit account and a working Node.js project. If you haven't built one yet, see How to Create a Node.js App on Replit first.
- Deployments require a paid Replit plan. Confirm your account has Deployments access before starting.
- Make sure your app runs correctly in the workspace before deploying.
- Deployments are now called Publishing.
- Sign in at replit.com and open your Node.js project from the dashboard.
- In your workspace, click New Tab and select Publishing (previously called Deployments). The Publishing panel opens.
- Click Adjust Settings to choose a deployment type.
- Autoscale for web servers and APIs that need to scale with traffic
- Static for frontend-only builds
- Reserved VM for a dedicated, always-on environment.
- Click Publish. Replit builds your project and deploys it to a replit.app subdomain. This typically takes one to two minutes.
- When deployment completes, check for a green status indicator in the Published panel. Click the generated URL to confirm your Node.js app is live.
.gif)
