← Back to Blog
Header image for blog post: How to deploy vibe-coded Replit Agent apps to production in minutes
Daniel Adeboye
Published 15th May 2026

How to deploy vibe-coded Replit Agent apps to production in minutes

You built an app with Replit Agent. It runs in the Replit preview. Now you need it on a real URL, with HTTPS, automatic redeployments when you push changes, and infrastructure that does not break when real users hit it.

This article covers how to deploy a Replit Agent app to production on Northflank: connecting your project to GitHub, configuring the build, and getting a live HTTPS URL with automatic redeployments on every push. Replit Agent can build anything, from a static React frontend to a full-stack Next.js app to a Python FastAPI backend, so some steps will depend on what your app actually is.

TL;DR: How to deploy a Replit Agent app to production

Replit Agent builds the app. Northflank runs it in production.

  • Connect your Replit project to GitHub in the Replit IDE.
  • Connect the repository to Northflank, configure the build, and Northflank deploys the app with TLS in under two minutes.
  • Every push to GitHub triggers an automatic redeployment on Northflank.

What is Northflank?  Northflank is a full-stack cloud platform that deploys Replit Agent apps with production-grade infrastructure: managed databases, secrets management, TLS, CI/CD pipelines, preview environments per pull request, and BYOC into your own cloud. No infrastructure code. No DevOps background required.  Sign up to get started or book a demo.

Why deploy Replit apps on Northflank?

Replit's built-in hosting works well for prototypes and early testing. Moving to Northflank gives you a production deployment with managed databases, secrets management, autoscaling, preview environments per pull request, CI/CD pipelines, and BYOC support when your app grows. You keep building in Replit. Northflank handles everything underneath.

Step 1: Ask Replit Agent to create a Dockerfile for your app

Before connecting to GitHub, ask Replit Agent to generate a Dockerfile for your app. A Dockerfile is the most reliable way to deploy any Replit project on an external platform, regardless of the framework or language. Open the Replit chat and paste this prompt:

Add a Dockerfile to this project so I can deploy it anywhere with Docker.

The agent will generate a Dockerfile specific to your project. For a Node.js app, it will install dependencies, build, and run the server. For a Python app, it will install requirements and start the ASGI or WSGI server. For a Next.js app, it will run the build and start the Next.js server.

Once the agent is done, check two things before moving on:

  1. The Dockerfile is visible in your project file tree
  2. Ask the agent: "What port does my app run on in the Dockerfile?" Write this down. You will need it in Step 4.

Confirm both look correct before continuing.

Step 2: Connect your Replit project to GitHub

In the Replit IDE, click the + icon at the top to open a new tab, then search for Git and select Git. This opens the Git settings panel. Under Connections, click Sign in next to GitHub. If you do not have a GitHub account, create one for free at github.com before continuing.

Once signed in, click Create Remote in the top right of the panel. Enter a repository name, set the privacy, and click Create Repository on GitHub.

image - 2026-05-14T152727.809.png

Your project is now connected to GitHub. Every commit you push from Replit will trigger an automatic redeployment on Northflank.

Step 3: Create a Northflank account and project

Sign up for Northflank. The free tier includes two services, one database, and two cron jobs with always-on compute.

Once you are in the dashboard, link your git account and create a new project. A project is a container for all the resources that belong to your app: services, databases, secrets, and pipelines.

  1. Click New project from the dashboard
  2. Give it a name matching your Replit app
  3. Choose a deployment target (Northflank Cloud)
  4. Select a region closest to your users
  5. Click Create project

image - 2026-05-14T152510.809.png

Step 4: Deploy the app

  1. Inside the project, click Create service
  2. Select Combined service and enter a name, for example replit-app
  3. Select your repository from the dropdown and choose the branch to deploy from
  4. Under Build options, select Dockerfile. Northflank automatically detects the Dockerfile if it is in the root of the repository, but Replit Agent may place it in a subdirectory. Ask the agent for the exact path and enter it in the Dockerfile location field, for example, /artifacts/project-name/Dockerfile.
  5. Under Networking, add a public port. Use the port number Replit Agent told you in Step 1. Northflank provisions a public HTTPS URL on this port automatically
  6. Under Environment variables, add any credentials or configuration your app needs. There are two types: build arguments are injected during the build process, and runtime variables are injected when the app is running. If you are unsure which to use, ask Replit Agent: "Do my environment variables need to be available at build time or runtime?" Add your variables in the correct section based on the answer
  7. Leave resources at the default values. You can enable autoscaling from the resources panel at any time
  8. Click Create service

Tip: If your app has multiple services or you want to manage credentials in one place, secret groups are a better option than adding variables directly to each service.

image - 2026-05-14T152628.577.png

Northflank builds the app and deploys it. TLS is provisioned automatically. Your Replit app is live on a *.code.run URL in under two minutes.

image - 2026-05-14T152515.850.png

Step 5: Add a custom domain (optional)

To use your own domain, first verify it in your Northflank account settings by adding a TXT record to your DNS provider. Once verified, add a subdomain and point it to your service port using the CNAME record Northflank provides. Northflank provisions a TLS certificate automatically.

For the full walkthrough, see Add and verify a domain in the Northflank docs.

What you get

By the end of this guide, your Replit app has:

  • A live HTTPS URL on a .code.run subdomain or your own domain
  • Automatic redeployment on every push to GitHub
  • Environment variables are injected at runtime with no credentials in the source code
  • Always-on compute on the free tier

When your app grows beyond a prototype and needs a managed database, background workers, preview environments per pull request, or the ability to run inside your own cloud account, Northflank covers all of it from the same control plane.

FAQ: deploying Replit Agent apps to production

Do I need to leave Replit to deploy on Northflank?

No. You keep building in Replit. Every change you push to GitHub from the Version Control tab triggers an automatic redeployment on Northflank. Your workflow stays in Replit. The production infrastructure runs on Northflank.

Do I need a Dockerfile to deploy a Replit app on Northflank?

It depends on your app. For simple frontends and standard runtimes, Northflank's buildpack detection handles the build automatically. For full-stack apps with custom servers, background processes, or multiple services, a Dockerfile gives Northflank precise instructions on how to run your app. Ask Replit Agent to generate one if you are unsure.

My build failed on Northflank. What should I do?

Copy the error from the Northflank build logs and paste it into the Replit Agent chat. The agent can diagnose most build failures and suggest the fix, whether that is a missing dependency, a wrong build command, or a Dockerfile configuration issue.

What happens to my Northflank deployment when I update my app in Replit?

Push your changes to GitHub from the Replit Version Control tab. Northflank detects the new commit and triggers a new build and deploy automatically. No manual steps required after the initial setup.

Can I add a managed database to my Replit app on Northflank?

Yes. Northflank provides managed PostgreSQL, MySQL, MongoDB, Redis, MinIO, and RabbitMQ as first-class addons. Provision one from the project dashboard, and Northflank injects the connection string automatically via secret groups.

Can I set up preview environments for each pull request?

Yes. Northflank preview environments spin up an isolated copy of the app per pull request and tear down automatically on merge. For a full walkthrough, see How to auto-create preview environments on every PR.

Conclusion

Replit Agent builds the app. Northflank keeps it running in production. Ask the agent what command starts your app and what port it uses, connect to GitHub, and Northflank does the rest.

Sign up for free and deploy your Replit app in minutes. Or book a demo if you want to walk through your specific setup with an engineer.

Share this article with your network
X