Publishing tool
Domain, access, production database, monitoring and security scan in one pane.
Preview and the published app run differently. Work through the differences in order and most launches go smoothly.
Sound familiar?
If a Replit app works in Preview but not when published, read the publishing logs, check the production secrets, make the server listen on 0.0.0.0 rather than localhost and keep it running, and make sure the homepage answers the health check quickly. Then connect your domain with the exact DNS records Replit shows.
Why it happens
Publishing saves a snapshot of your app and runs it on Replit’s cloud, separately from the Project Editor. Replit’s troubleshooting guide lists the usual differences: production secrets, run and build commands, a program that exits instead of staying up, a server listening on localhost instead of 0.0.0.0, port settings, and a homepage too slow for the health check.
On a custom domain, the other common cause is DNS: records that don’t exactly match what Replit shows, or changes that haven’t spread yet.
Already done for you
Domain, access, production database, monitoring and security scan in one pane.
The Logs tab in Publishing shows stack traces, missing packages and startup errors.
Replit can check that the app is online and email you if it goes down.
Add your domain, copy the two DNS records, and HTTPS is set up automatically.
Fix it yourself
In this order. Most apps get most of the way with these alone.
If Preview is broken, publishing won’t fix it.
Look for missing packages, missing environment variables and startup errors.
Replit’s docs disagree on whether editor secrets carry over, so check the published app’s secrets and use production values.
Servers listening on localhost or 127.0.0.1 don’t work when published. If ports are set in .replit, set externalPort to 80.
Published apps expect a long-running server, and Replit sends a health check request before it marks the app live.
Add it in Publishing settings, copy the records exactly at your registrar, wait for Verified, and test sign-in and checkout on the new address.
If the steps above turn up more than you have time for, or the app already has paying users, I take Replit apps to production: login and access rules, database and backups, payments, security, SEO and deployment.
App rescue: From $1,000, fixed price, scoped in writing before any work starts.
More in app rescue, or hire a Replit developer.
Questions
Most often: missing production secrets, a server listening on localhost instead of 0.0.0.0, wrong run or build commands, or a slow homepage failing the health check. The Logs tab usually shows which.
DNS changes can take from a few minutes to a few hours. Replit shows Verified once it sees the records.
Replit recommends Autoscale for most apps, because it scales from zero with demand.
Send me the app and what’s worrying you. You get a written scope with a fixed price before any work starts.