Move a team to Coresmith Cloud
A team on self-hosted Coresmith can move to Coresmith Cloud with its servers, apps and databases. Coresmith Cloud takes each server over without setting it up again, and the apps keep serving the whole time.
Before you start
- Sign up for Coresmith Cloud. The team you get there is where the self-hosted team moves to. A team moves into a Coresmith Cloud team with no servers, so don't add any first.
- Check that Coresmith Cloud can reach every server. It connects over the internet, so each server needs a public IP address and an SSH port open to the internet. A server on a home network or only reachable over Tailscale can't move. Neither can one that gets IPv4 visitors through Cloudflare, since that only works on self-hosted Coresmith.
- Check that the plan fits. The trial includes one server. Starter includes three servers and is for one person. Pro and Business have no limits. If the team is bigger than your plan, choose one under Settings, Billing on Coresmith Cloud first.
- Check the machine Coresmith runs on. If the team includes it, it can move too, with your agreement. Bring the machine Coresmith runs on says what it needs.
Move the team
- On Coresmith Cloud, open Settings, General. Under Move a team from self-hosted Coresmith, choose Create a move code, then copy the code. It works for a day.
- On your self-hosted Coresmith, switch to the team you're moving. Under Settings, General, paste the code into Move this team to Coresmith Cloud and choose Download move file. Only the team's Owner can do this. If the team includes the machine Coresmith runs on, also tick the box that hands it over to Coresmith Cloud. Coresmith checks every server before anything changes, and tells you which one can't move and why.
- Back on Coresmith Cloud, upload the move file. The card shows what moves, what you'll need to reconnect, and whether your plan fits.
- Choose Move team. Each server's page shows Coresmith Cloud taking it over. If one stops, the page says why and offers Try again.
The move file only opens on the Coresmith Cloud team that made the code, and only once.
While the team moves
Self-hosted Coresmith pauses the team when you choose Download move file. It stops deploying and making changes, and the servers and apps keep running. To keep the team where it is, choose Cancel the move on the same card. If you handed over the machine Coresmith runs on, cancelling takes Coresmith Cloud's access off it again. Once Coresmith Cloud has taken that machine over, the move can't be cancelled. After the servers move, the self-hosted team stays paused and its servers read Moving out, since Coresmith Cloud manages them now.
After the move
- GitHub. Connect GitHub under Settings, Git on Coresmith Cloud. Apps whose repositories the connection can see link to it on their own. GitLab and Bitbucket need signing in to again.
- Deploy webhooks. Each app that deploys from a webhook gets a new webhook address on Coresmith Cloud. Paste it into your git host.
- Teammates. Everyone on the self-hosted team gets an invitation to Coresmith Cloud, with the same role.
Deployment history, metrics, the activity log, API tokens, single sign-on and the team's own domain stay behind. On Coresmith Cloud, the team opens at its app.coresmith.io address.
Bring the machine Coresmith runs on
The machine self-hosted Coresmith runs on can move with its team, once you agree to hand it over. It needs a public IPv4 address that reaches it directly, with SSH open to the internet on that address. A machine behind a home router can move only if the router passes web traffic and SSH through to it. One that gets IPv4 visitors through Cloudflare can't move.
If Coresmith was installed before 0.8.34, run the installer on the machine once first, since updates don't change the part of Coresmith that hands the machine over. It keeps your settings, and Coresmith restarts while it runs:
curl -fsSL https://get.coresmith.io/install | sudo bashWhen you download the move file with the box ticked, Coresmith lets Coresmith Cloud sign in to the machine as root, with a key and only from Coresmith Cloud's own addresses. The rule for those addresses is in /etc/ssh/sshd_config.d/00-coresmith-move.conf. Everyone else signs in as before.
After the move, Coresmith Cloud manages the machine like any other server. It turns password logins off and puts the SSH keys of your team's owners, admins and developers on it, so add your SSH key in Coresmith Cloud before you move.
Wait until the machine's page on Coresmith Cloud shows no move. If it says The move stopped, do what it says and choose Try again. Then choose Remove Coresmith under Settings, General on your self-hosted Coresmith. The apps on the machine keep running, and Coresmith Cloud keeps its access. If you try sooner, Coresmith asks you to finish the move first. Remove Coresmith.