Releasing during the day: what visitors see while your site switches

Can you release while people use your site? Which sites switch with no gap, when requests are held, when the updating page appears, and how to prepare.
Your AI has finished a change and asks, "Shall I publish it?" It is the middle of the day, customers have the site open, and you hesitate: will they get a blank page while the new version goes live? Will an order that is being submitted right now get lost? So the release waits until late at night.
This article walks through how BrewInTH switches versions: which sites switch with no gap at all, which have a short moment where the platform holds visitors' requests for them, when the "Updating the site" page appears, and how to prepare your app so that releasing during the day is simply normal.
In short
🔁 While the new version builds and while its release command runs, the current version keeps serving. Visitors move to the new version only once it answers.
⚡ Static sites and apps without persistent storage (/bw-data) switch with no gap.
⏳ An app with persistent storage must stop its current version first. The platform holds each visitor's request for up to 30 seconds and then hands it to the new version.
🪧 Past 30 seconds a visitor sees an "Updating the site" page that reloads itself every 5 seconds; mobile apps and API clients get a 503 that tells them to retry.
🛟 If the new version cannot start, the current one either never stopped or is started again for you.
What happens when you publish
When you press Build & publish in the Releases tab, or an AI with the project's token starts a release, the platform does this, in order:
- Build on a separate machine. Packages are installed and the new code is built. The current site keeps serving. If the build fails, nothing changes.
- Run the release command. If you filled in Release command (runs before the release goes live), for example your framework's migrate command, the databases are backed up first and the command runs from the new code. Visitors are still on the current version.
- Start the new version and call the Health check path (
/by default) until it answers with a 2xx or 3xx status. - Move visitors to the new version, then stop the old one.
What differs between kinds of site is steps 3 and 4: whether the new version can start next to the current one, or has to wait until the current one has stopped.

Which kind is your site?
Static sites: an instant switch
A site made only of HTML, CSS and JavaScript files has no server of its own, so there is nothing to start. When you press Publish latest files, the new set is served immediately. Browsers check every time whether a file has changed, so visitors get the new version the next time they open a page, with no cache to clear.
Apps without persistent storage: start alongside, then switch
For a Node.js, PHP, Python or other app that has not turned on Persistent storage (/bw-data), the platform starts the new version next to the current one, waits until it answers, and only then moves visitors across. The previous version stops afterwards, so there is never a moment when nobody answers.
Apps with persistent storage: a short switch
Persistent storage is the disk that keeps your app's files across releases: pictures users uploaded, a SQLite file, Laravel's storage/ folder. That disk can be attached to one copy of the app at a time, so two versions never write the same files at once and corrupt them. The platform therefore stops the current version first and then starts the new one.
During the moment when no version is running, visitors do not get an error. The platform holds their requests at the site's entrance, checks every second whether the new version is ready, and passes each request on as soon as it is. To a visitor the page simply loads a little slower than usual. The pause lasts as long as your app takes to start, usually somewhere between a few seconds and a few tens of seconds.
To see whether your project uses persistent storage, open the App settings tab and look at the Persistent storage (/bw-data) panel. A size in its heading, such as 1 GB, means it is on; Off means your app switches alongside. The Upload & go live page may turn it on for you when it sees that the app keeps its data in files. In Release history, the log of such an app contains this line:
[release] the previous release stops first (this app keeps its files on /bw-data); visitors wait at the edge until this one answers
When the "Updating the site" page appears
Each request is held for at most 30 seconds. If the new version is still not ready by then, a visitor who asked for a web page gets this page instead:
- The heading Updating the site, then "The system is switching to a new version" and "This will not take long. This page opens by itself when it is ready; there is nothing to press."
- The page reloads itself every 5 seconds, so the visitor lands on the site as soon as the new version is up.
- It is sent with status 503 and a
Retry-Afterheader, the standard way of saying "temporarily unavailable", not "gone". - It is in Thai or English, following the visitor's browser, and shows the site name you set under The site's name and contact on these pages in the App settings tab; without one it shows the site's address.

Requests that do not ask for a web page, such as a mobile app or a page calling an API with fetch, get a JSON 503 instead:
{"error":"release_switching","retryAfterSeconds":5,"hint":"A new version of this app is starting. Retry in a few seconds."}
A form submitted during the switch is held as well. If it waits more than 30 seconds and gets a 503, its data never reached the app, so sending it again cannot create a duplicate. A WebSocket that tries to connect during the switch gets a 503, and connections that were open to the previous version end with it, so chat apps and games should reconnect by themselves after a short delay. How to do that is in building real-time chat and multiplayer games with WebSockets.
Using a page of your own
Paid packages, from Starter at ฿99 a month, can replace this page with their own HTML. In the App settings tab, find the Maintenance mode panel, go to Pages of your own (HTML), and press Upload .html on the row Updating page (while a release switches).
- One file of at most 256 KB, with its CSS inside.
- Attach pictures and fonts under Pictures and fonts for these pages: during the switch, the site's own files cannot be opened.
- Your page reloads itself every 5 seconds, just like the built-in one.
On the Free package visitors see BrewInTH's page with your site's name.
When the new version cannot start
- An app without persistent storage: the current version never stopped. The release is marked as failed, and visitors never knew a release was attempted.
- An app with persistent storage: the current version had already stopped, so the platform starts it again by itself. Requests are held and the updating page is shown in the meantime, and the log says:
[release] this release could not start, so the previous release is starting again
The platform waits up to about 5 minutes for a new version to answer, and decides sooner when the app keeps crashing at start. For an app with persistent storage that is time visitors spend looking at the updating page, so it pays to have your AI check the code before releasing. If a release does fail, read the cause in the log under Release history and hand it to your AI, as described in letting your AI read the logs and fix a failed deploy.
A release command that fails also fails the release. The current version keeps serving, but the database may already be partly changed; the backup taken right before the command is your way back.
Preparing your app for smooth releases

- Give the health check a fast answer. Visitors move once this path answers 2xx or 3xx. An API-only app that returns 404 on
/needs one, for example/health, set under Advanced options (build / start / port) in the Releases tab. Laravel 11 and later use/upautomatically when nothing is set. Let the path answer once the app can really serve people, and keep it light. - Keep heavy work out of start-up. Migrations belong in the release command, which runs before the switch, after an automatic database backup. An app that migrates or warms caches as it starts makes the switch of an app with persistent storage longer.
- Change the database in a way the current version survives. The release command runs while the current version is still serving, so a migration that drops or retypes a column breaks it during the switch. Add the new thing in this release and remove the old one in the next. There is an example in rolling a site back together with its database.
- Let web pages and mobile apps retry. On a 503 with
Retry-After, wait that long and try again. Send important forms, such as orders or bookings, withfetchand retry automatically, so nothing the user typed is lost. - For apps with persistent storage, pick your moment. Release when traffic is low, and bundle several changes into one release instead of releasing many times a day.
Let your AI prepare the app
Send this to Claude Code, Cursor or whichever AI has your project folder open:
This app is hosted on BrewInTH. Please prepare it so new releases go live smoothly:
1. Add a GET /health route that returns 200 once the app can serve requests,
without calling outside services, and tell me to put /health in the
Health check path field (on Laravel 11 or later, the existing /up is fine).
2. If the app runs migrations or other heavy work at start-up, move the migration
into a single command I can put in the Release command field, and tell me
what that command is.
3. Check the pending migrations. If any drops, renames or retypes a column,
split it into two releases: add the new thing now, remove the old one next time.
4. In the front-end code, when fetch gets a 503, wait for the Retry-After header
(or retryAfterSeconds in the JSON) and try again, at most 3 times before telling
the user, and keep form data until the request has succeeded.
5. If the app uses WebSockets, reconnect automatically when the connection drops,
waiting 1, 2, 4 seconds and so on, up to 30 seconds.
FAQ
Does the database stop during the switch?
No. The database runs separately from the app; only the app changes. Everything saved before the release is still there.
What do visitors see when I restart the app?
Restart the app is in the ⋯ menu of the project page and follows the same rules as a release. An app without persistent storage starts a fresh copy before the old one stops. An app with persistent storage stops and starts again in place, and the platform holds visitors' requests in the same way.
How is "Starting up" different from "Updating the site"?
"Starting up" means the site went to sleep automatically because nobody visited for a while and is waking. "Updating the site" means a new version is going live. If you close the site yourself, visitors see "Down for maintenance", and if the app crashes or does not answer they see "A temporary system problem". Sleeping is explained in why a free site opens slowly the first time.
Can I turn persistent storage off to avoid the switch?
Only if the app no longer needs the files on it, for example because pictures now live in an outside file-storage service and everything else is in the database. Once it is off, the next release no longer sees the files on that disk; they are kept until the project is deleted, but the app cannot use them. If your app still writes files, leave it on and make the app start quickly instead.
Will a 503 page hurt my Google ranking?
A 503 with Retry-After is what Google itself recommends for a site that is temporarily unavailable, unlike a 404, which says the page is gone. Google's warning is about sites that answer 503 for days on end, not a short version switch.
Does a static site need any preparation?
No. A static site switches the moment the new files are ready, and browsers check with the platform every time whether a file has changed, so nobody is stuck with the old set.
Summary
On BrewInTH the current version keeps serving throughout the build and the release command, and visitors move to the new version only once it answers. Static sites and apps without persistent storage therefore switch with no gap. Apps with persistent storage have a short pause during which the platform holds requests, and show "Updating the site" when the wait runs past 30 seconds. Set a health check path, move migrations into the release command, let your pages retry after a 503, and there is no reason to wait for midnight to release.
Start your first project for free →
