Browse the guides
Moving to CloudJod
Moving an app from Heroku, Render, Railway, Fly.io, DigitalOcean, Vercel, Netlify, CapRover or a compose file: settings, processes and data, checked first.
An app running on Heroku, Render, Railway, Fly.io, DigitalOcean, Vercel, Netlify, CapRover or from a Docker Compose file can be moved here in one flow: CloudJod reads how it runs into a plan, you check the plan, CloudJod makes everything in it as you would by hand, and the data of its databases is copied in. Nothing on the old platform is changed, so the old app keeps running until you switch its domain over.
Deciding first? The comparisons set CloudJod beside Heroku, Render, Railway and Fly.io, fact by fact with sources, before you move anything; and the Heroku alternatives set the managed platforms and the self-hosted tools people weigh side by side.
- Read the app into a plan
- Give what the old platform will not
- Carry the plan out
- Copy the data
- Switch over
Read the app into a plan
From the files in its repository, in the repository's folder:
cloudjod move
That reads the files that say how the app runs and sends only those: a
Procfile and app.json (Heroku),
render.yaml (Render), fly.toml (Fly.io),
railway.json or railway.toml (Railway),
.do/app.yaml (DigitalOcean), vercel.json
(Vercel), netlify.toml (Netlify),
captain-definition (CapRover) or a compose file. When a
repository has a platform's own file and a compose file, the platform's is
read; say --source compose to read the compose file instead.
The repository the apps build from is read from git. Add
--env-files to send the folder's .env files too,
for the settings in them. In the dashboard, Projects →
Move to CloudJod does the same with the files you choose.
From Heroku, through Heroku's API, every setting and the database's address come along:
cloudjod move heroku my-heroku-app
With the Heroku command line signed in, this makes a token that can read
the app's settings for an hour; or give one made with
heroku authorizations:create --scope read-protected --expires-in 3600
as --token. The token is used for the reading and never kept.
Heroku's API does not say where the app's code is, so give the repository
with --repo, or run the command in the repository's folder.
The two side by side: Heroku vs CloudJod.
From Render, through Render's API, every service's settings and its databases' addresses come along:
cloudjod move render storefront nightly
Give a Render API key, made under Account Settings, as --token,
or it is asked for without echo; it is used for the reading and never kept.
Leave out the names to read every service the key can see. Render keeps the
values of environment groups and secret files apart from each service's
own: paste those. The two side by side: Render vs
CloudJod.
From Railway, through Railway's API, one environment of a project comes along: every service's settings, and each database's public address:
cloudjod move railway 3f2c9a7e-1b4d-4e8a-9c21-5d6f7a8b9c0d --environment production
The project's ID is under its Settings, and the environment is
production unless you say. Give a token made under the project's
Settings, Tokens, or your account's, as --token, or it is asked
for without echo; it is used for the reading and never kept. A variable
that refers to a database's address, such as the Postgres service's
DATABASE_URL, becomes a connection to the new database, and one that refers to another
service's private domain becomes that app's name here. A cron service
becomes scheduled commands of an app that runs no copies and answers nobody
on the internet. Sealed variables are never given back, so the plan asks
for them; and a database whose TCP proxy is off has no public address to
copy from, so turn it on and read the project again. The two side by side:
Railway vs CloudJod.
From Fly.io, the move reads fly.toml: the app, its build, its
process groups, the port it answers on, its volumes and its machine sizes.
Fly.io never gives secrets back, so paste them as a .env file.
The two side by side: Fly.io vs CloudJod.
The plan says what will be made: each app, with its repository, its size, how it starts, its other processes, the command it runs before each release, its schedules and domains; each database, which apps it is connected to and under which variable, and whether its data is copied; and every setting, with what happens to it:
| Moves | Its value was read, and is set on the new app, sealed unless it is plainly not a secret. |
|---|---|
| Paste it | The old platform never gives it back (Fly.io's secrets, Vercel's Secret variables, Netlify's secrets, DigitalOcean's SECRET values): paste it. |
| Given by a new database | It was the old database's address. The new database gives the app its own; set by hand, it would take that one's place. |
| Left behind | The old platform set it for itself, such as HEROKU_APP_NAME. |
Whatever cannot move by itself is in the plan's notes, with what to do instead: Heroku Scheduler's jobs, which are in no file and no API, become scheduled commands you add; a buildpack CloudJod does not have needs a Dockerfile; Netlify's and Vercel's functions need an app of their own; a host directory mounted by a compose file has no place here. A move's values are sealed the moment they arrive and shown to nobody: a plan says only which ones it holds. Its settings are forgotten once it is carried out, and every value two weeks at most after it was given.
Give what the old platform will not
cloudjod move paste MOVE web --file .env.production
cloudjod move paste MOVE --database db
The first keeps settings for an app from a .env file; the
second asks, without echo, for an old database's address, to copy its data
from. The address must be one CloudJod can reach from the internet.
Carry the plan out
cloudjod move apply MOVE
Your plan's limits are checked first: if the move would not fit, nothing is
made, and the refusal says why. Skip what you do not need with
--skip app:NAME,database:NAME. Then each step is taken through
CloudJod's own API, as you: the databases, each app with its settings, its
processes, its release command, its schedules and its domains, the
databases' connections, and each app's first build from its repository.
Each is in the audit log as yours, with the move
beside it, and a member whose changes wait for an owner's approval waits
once, for the whole move. A step that is refused stops the move, which says
where and why; carry it on once that is fixed, and it takes only the steps
not yet done.
Connecting an app to its repository shows the repository's push hook and its secret once: add them to the repository, and each push builds the app.
Copy the data
cloudjod move copy MOVE
Each old database is copied into its new one by the new one's own tools
(pg_dump and pg_restore, mysqldump,
mongodump and mongorestore), run as a task of
your organization's inside its sandbox, which cannot reach CloudJod's own
network. Then the rows of every table are counted on both sides. Counts that
differ mean the old app was still writing while it copied. PostgreSQL,
MySQL, MariaDB and MongoDB are copied; a Redis or Valkey cache starts empty
and fills again, so let job queues drain before you switch.
A copy started the moment the move is carried out waits for the new
database to finish starting, then runs. A PostgreSQL dump carries no roles,
so a row security policy that names one of the old server's roles is kept by
making that role here, unable to sign in; the copy says which roles it made.
If the old database sorts text by another collation (C.UTF-8,
say, where CloudJod's databases use en_US.utf8), the copy says
that too: the rows are the same, but ORDER BY on text follows
the new database's rules from then on.
Any database can be filled the same way, moving or not:
cloudjod database import DATABASE asks for the address to copy
from, or Import data beside it on the Databases page. A
database that already has tables is refused, never mixed, unless you say
--replace.
Switch over
- Copy the data once, and try the new apps at their CloudJod addresses against it.
- A day before, lower the time your domain's DNS records are kept to five minutes, so the switch spreads quickly.
- Stop the old app writing: on Heroku,
heroku maintenance:on, and scale its workers to 0, so no job runs twice. - Copy the data again, for the last time:
cloudjod move copy MOVE. Each copy replaces what the one before put there. - Point the domain at CloudJod, as its app's Domain & DNS tab says. CloudJod issues its certificate once the domain points here.
- Update what still points at the old address: webhooks, OAuth callbacks, and anything that pinned it.
Until you switch the domain, going back is turning the old app's maintenance mode off. After, it is pointing the domain back; what the new app wrote since is in the new database only.