Moving from Primcloud
Move a running Primcloud app to your Base with no gap: the same Procfile, formation sizes, secrets in one file, the database kept or moved, and the domain.
This moves one running Primcloud app, shop, to your Base. Primcloud keeps
serving until your domain points at Oalo, so your users never see a gap.
Both read a Procfile, so most of the app comes over as it is.
You need the Oalo CLI, signed in to your Base (oalo login <workspace>), and
access to your Primcloud dashboard.
| On Primcloud | On Oalo |
|---|---|
| Procfile | The same Procfile |
release line | release: line, run before each release |
| Pod formations | Processes, all started on the first deploy |
| Formation size | A size per process in .oalo/app.json |
| Instances | One copy per process |
scheduler process | The same scheduler: line, or a scheduled workflow |
| Secrets | oalo env, separate for dev and prod |
| Environments | Dev (the preview) and prod (the live app) |
| Tasks | No one-off runner; release: for migrations |
| Dockerfile (on some plans) | Your Dockerfile, on every plan |
*.primcloud.app | <app>-<workspace>.oalo.ai |
The short way: oalo migrate
In the app's repo, oalo migrate primcloud works out steps 1 and 2 for you and
shows the plan: your Procfile kept as it is, the variables and the steps that are left. It changes nothing until you add --apply, and never
prints a value.
oalo migrate primcloud --env-file .env.primcloud # the plan
oalo deploy --new shop
oalo migrate primcloud --env-file .env.primcloud --apply # set the new app's variables
Primcloud has no command to read from, so it keeps your Procfile and takes the secrets from a .env file you fill from Settings, Secrets (step 2). The variables go straight to the live app's settings, with PORT and
Primcloud's own left out and DATABASE_URL renamed to EXTERNAL_DATABASE_URL.
Then carry on from step 3. In step 4 the app and its variables are done, so
go straight to oalo deploy --env prod. The steps below say what
oalo migrate does, and what's left for you.
1. Keep your Procfile
Nothing to change. Your release, web, worker and scheduler lines run
as they are: release once before each release, web on $PORT, and every
other line as its own process. They all start on the first deploy; there are
no formations to scale up from 0.
Each process runs as one copy, so a scheduler runs every job once, as it
does on one instance today. Give each process a size in .oalo/app.json:
{ "sizes": { "web": "medium", "worker": "small", "scheduler": "tiny" }, "health": "/healthz" }
| Primcloud size | Oalo size |
|---|---|
| Standard 1x (512 MB) | tiny (0.25 CPU, 512 MB) |
| Standard 2x (1 GB) | small (0.5 CPU, 1 GB) |
| Standard 4x, Performance 1x (2 GB) | medium (1 CPU, 2 GB) |
| Performance 2x (4 GB) | large (2 CPUs, 4 GB) |
Memory is a hard limit on both. Larger sizes aren't available yet. See Live server apps.
Builds. Oalo builds with buildpacks from your repo's files (Node needs its
lockfile committed), or from a Dockerfile at the root when there is one, on
any plan. If you used project.toml for system packages, a Dockerfile is the
way to add them.
2. Bring your secrets
In the app's Settings → Secrets, reveal each value and copy it into
.env.primcloud, a NAME=value per line. Then:
- Leave out
PORT, and any variable Primcloud set for you. - Rename
DATABASE_URLtoEXTERNAL_DATABASE_URL. On Oalo,DATABASE_URLis always your Base's own Postgres (step 3). Have your code read the new name first and fall back to the old one, such asprocess.env.EXTERNAL_DATABASE_URL || process.env.DATABASE_URL. Then if you move the data into your Base, removingEXTERNAL_DATABASE_URLis the whole switch. - A base64 value you stored for a multi-line key can stay as it is, or
become the plain key: a value can be up to 32 KB and span lines inside
double quotes (
KEY="-----BEGIN ...").
Primcloud's environments map to Oalo's two: the live app's variables
(--env prod) and the preview's (--env dev).
You'll load it in step 4, once the app exists.
3. Keep your database where it is, or move it
The simplest move keeps your database and other services (from the
Marketplace or elsewhere) running and points your Base at them. Your Base
reaches them over the internet, so each needs a URL that accepts outside
connections. Set the database's as EXTERNAL_DATABASE_URL and Redis's as
REDIS_URL.
Files work as they do on Primcloud: a process can write only to /tmp (256 MB),
which is emptied when it restarts, so keep what must last in the database or
object storage.
Your Base also has its own Postgres, which the app reaches at DATABASE_URL.
New tables can go there from day one: see
App environment.
Or move the data into your Base
oalo db restore copies the database into your Base's own Postgres, so the
app reads it at DATABASE_URL and the old database can go (Redis stays at
REDIS_URL). Workspace admins can run it, for a database whose dump is up to
10 GB, from Postgres 18 or older, and with room for it on your Base.
Writes made after the copy starts aren't in the copy, so stop them first. Do this once the app runs on Oalo (step 4), just before you move the domain (step 6):
-
Check it.
--checkdoes everything except the write, and reports the tables (rows and size), the extensions and any conflicts. The first line waits for you to paste the database's URL, the one that accepts outside connections, and doesn't show it:read -rs SOURCE_DATABASE_URL && export SOURCE_DATABASE_URL oalo db restore --from-env SOURCE_DATABASE_URL --env prod --check -
Stop writes: scale the app's formations to 0 instances. Your users can't reach the app until the domain points at Oalo, so pick a quiet hour.
-
Copy it. Your Base runs
pg_dumpagainst the database itself:oalo db restore --from-env SOURCE_DATABASE_URL --env prod -
Switch with
oalo env unset EXTERNAL_DATABASE_URL --env prod. The live app relaunches, readingDATABASE_URL(the fallback from step 2).
A database that takes no outside connections can come over as a file. Once
writes have stopped, make it with pg_dump --format=custom from where you
can reach the database (plain SQL works too), then
oalo db restore shop.dump --env prod. Your app on Oalo can't use that
database meanwhile, so restore it before the app's first
oalo deploy --env prod (step 4), with EXTERNAL_DATABASE_URL left out of
.env.primcloud.
Three things to know:
- The URL never goes on the command line, where your shell history would
keep it:
--from-envnames the variable that holds it. Prod asks you to confirm; in a script, add--yes. - It's all or nothing. A clash with a table, view, sequence, type or function already in prod is refused, and the reply names them. So is an extension Oalo doesn't allow. A failed restore leaves prod as it was. See "Bringing data in" in App environment.
- Until the switch, your app on Oalo uses the old database, so a write from it during the copy (a worker's, say) is lost too.
4. Deploy it
From your repo's folder:
oalo deploy --new shop
This makes the app from your commits, links the folder to it and starts its preview. Load the variables from step 2 into the live app, then go live:
oalo env set --file .env.primcloud --env prod
rm .env.primcloud
oalo deploy --env prod
Every line of the file is set, or none: a line naming a variable Oalo sets
(PORT, DATABASE_URL, anything starting with OALO_) refuses the whole
file and says which. The preview has its own variables (--env dev), so give
it test keys.
Oalo builds the commit, runs release, starts every process and waits for
web to answer before it serves traffic. If any step fails, it says why and
nothing goes live. The app is now at shop-<workspace>.oalo.ai. Try it there
before you move the domain.
5. Without tasks
There's no one-off runner. Migrations belong in the release: line, which
runs before every release (and before every preview restart). A one-off
script against a database you kept (step 3) can run from your machine.
A scheduled job can also be a workflow with a schedule that calls one of your app's endpoints: see App tools.
Logs: oalo logs --env prod --follow. Rollback: oalo deploy --rollback.
6. Move your domain
- In the dashboard, open the app and add the domain under Custom Domain.
- Add the CNAME record it shows at your DNS provider. That proves the domain is yours and gets its certificate.
- Point the domain itself at
<workspace>.oalo.aiwith a CNAME, in place of Primcloud's. A root domain (example.com) can't have a CNAME: use your DNS provider's ALIAS, ANAME or flattened CNAME. - Wait for Your app is live at in the panel, usually 5 to 30 minutes after DNS updates. It's served over HTTPS.
An app has one custom domain. To serve both www and the root, add one
and redirect the other to it with your DNS provider's forwarding.
7. Switch Primcloud off
Once traffic comes to Oalo, scale the app's formations to 0 instances. That's easy to undo while you watch the new app. Delete the app once you're sure, keeping any database or service you still use. A database you moved into your Base can go too.
Leaving again
Your code stays a git repo and your data comes out as plain SQL
(oalo db dump). See "Undock any time" in Bring your repo.
Host code you already have: oalo deploy --new makes an app from a repo on your machine or at a Git URL, how Oalo tells what kind of app it is, and what to add.
How a server app in any language is built, started from its Procfile, sized, health-checked, released with no gap, and rolled back.
Give an app its API keys and settings with oalo env, per env: what is secret, what each kind of app gets, its own token and database, and when changes apply.
Move a running Heroku app to your Base with no gap: the same Procfile, config vars in one file, the database kept or moved, the scheduler, and the domain.
Move a running Railway app to your Base with no gap: services into a Procfile, variables in one file, the database kept or moved, cron, and the domain.
Move a running Render app to your Base with no gap: services into a Procfile, variables in one file, the database kept or moved, cron jobs, and the domain.
Move a running Fly.io app to your Base with no gap: fly.toml into a Procfile, your Dockerfile as it is, secrets, the database kept or moved, and the domain.
Sign up, install the CLI, and deploy your repo in a few minutes.