Works in preview, not live?
When an AI builder shows you your app, it runs on your computer or inside the builder's preview. That address (often "localhost") only works there.
To put it online, your app needs three things: a computer that is always on and connected to the internet (a server), a name people can type (a domain), and a safe connection (HTTPS, the lock in the browser bar).
More on this: It works in preview, not when deployed.
- Your computer
- Server
- Domain
- User
First, what did you build?
- Just pages (a site for your business, a landing page): no login, no database. This is the simplest case.
- An app with logins or saved data (a store, a booking app, a dashboard): it has a database, and probably passwords and keys that must stay secret.
- Something that runs all the time in the background (a bot, an automation, a scheduled job): it needs a server that never sleeps.
The more of these you have, the more the steps below matter.
Two ways to put it online
- Managed hosting: you connect your code and the platform runs it for you. Easier to start, less control, and the bill can grow with your traffic.
- Your own server (a VPS, a rented computer in a data center): more control and a steady monthly bill, but you are in charge of updates and backups.
This guide follows the second path, because that is where people usually get stuck. If you want to compare server prices, the VPS Price Index shows dated prices with their source.
Step by step
Where your app lives now
localhostis your home: when your laptop closes, the app is gone.Right now your app lives where you built it. Before anything else, get the whole project out of the AI builder: look for an option called Export, Download or GitHub. You need the whole project on your computer or in a GitHub repository. The checklist below shows what a live app still needs.
Tool: Production readiness checklist
Prompt for your AI tool I built this app with you. In plain words, tell me where it runs right now and what happens to it when my computer is off. Then tell me exactly how to download the full project code, including every settings file it needs, so I can run it somewhere else. Do not change any code yet.Give it a server
A server is a rented apartment; a "Publish" button is a hotel room.
A server is a computer that is always on and connected, so your app keeps running when your laptop is closed. Find out how much processor, memory and disk your app needs before you choose one. Start small; most servers can be made bigger later. Docker then packs your app and everything it needs into one box that runs the same on your computer and on the server.
Tool: Stack Sizer
Prompt for your AI tool Look at my project and tell me what it needs to run on its own server: the language and its version, the database, any background jobs, and roughly how much memory and disk it uses. Then write a Dockerfile and a docker-compose.yml for it and explain every line in plain words.Need a server for this?
ANAROQ is in development and doesn't sell servers. These are some options for renting a server, in no particular order.
- View plans at Contabo (opens in a new tab)
- View plans at DigitalOcean (opens in a new tab)
- View plans at Hostinger (opens in a new tab)
- View plans at Vultr (opens in a new tab)
Regular links, not affiliate links. ANAROQ earns nothing from them. Providers are not ranked. How ANAROQ may earn from links
Connect a domain
DNS is the internet's phone book.
At the company where you got your domain, point it to your server's address (an "A record"). A small program called a reverse proxy sits in front of your app, answers visitors on your domain and handles HTTPS, the lock in the browser bar. Caddy can get and renew the HTTPS certificate for you automatically. Changes can take a while to show up everywhere, sometimes hours.
Source: Caddy documentation: Automatic HTTPS
Tool: DNS go-live checker
Prompt for your AI tool I want people to open my app at my own domain. Explain step by step, in plain words, which DNS record I add at my domain company so the domain points to my server, and write a Caddy configuration that serves my app on that domain with HTTPS. Tell me how to check that it works.Before you go live
A secret key visible in the browser is a key left in the door.
API keys, database passwords and payment keys must not sit inside your code or reach the browser. Move them to a separate settings file (environment variables, usually a file called
.env) that is never uploaded to a public place. If your keys work in preview but not live, see My API keys didn't reach the server. If a key was ever public, create a new one. Then check backups you have actually restored once, security updates, closed ports and HTTPS.Tool: Production readiness checklist
Prompt for your AI tool Check my project before it goes live. Find every API key, password or token that is written in the code or sent to the browser, move each one to environment variables, add a .env.example file without real values, and list every key I must replace because it was exposed. Show me the list before you change anything.
Before you share the link
Questions people ask
- App works in Dev Mode, not in Deployed Mode
- Dev Mode runs inside the builder, with its settings and its test data. The live copy runs somewhere else and often misses something: a key that was never added to its environment variables, a database address that still points to the test database, or an address that says localhost. Compare the settings of both, then read the error messages (logs) of the live copy.
- Verifying a domain takes time
- A change to a domain spreads step by step: DNS servers keep the old answer for a while before they ask again. Check what public DNS answers with the DNS go-live checker, and wait before you change the record again: another change can make the wait longer.
- The page is blank after I put it online
- Usually the app still looks for something that exists only on your computer: an address with localhost, a file that was never uploaded, or a missing key. Open the browser's developer console on the live page; the first red error usually names it.
- Do I need my own server, or is a Publish button enough?
- For a simple site, a Publish button can be enough. Your own server makes sense when you want control, a steady bill, or something that runs all the time in the background.
Common mistakes
- Keys inside the code.
- If your code is public, so are your keys. Move them to environment variables (the last step).
- The test database goes live.
- Builders often start with a test database. Make sure the live app uses a real one, with backups.
- No backup, or a backup nobody tested.
- A backup you never restored is a hope, not a backup.
- Changing DNS and panicking.
- A new domain setting can take time to spread. Check with the DNS go-live checker before changing it again.
- Choosing a server by price alone.
- Check what your app needs first (the server step), then compare.
Limits
- This guide does not cover app stores, payment setup or legal pages in detail.
- The tools prepare files and checks. They do not put anything online for you, and nothing is sent to ANAROQ.
- ANAROQ does not host your app.