Moving a hosted project to self hosted
Starting on Modelcode Hosted is the fastest way to begin. Once the migration is underway, you may want it to run inside your own network instead. Moving to self hosted lets each milestone build and validate on your own infrastructure, such as staging, dev, or any host that can reach your real deployed services and environments, so the migration is tested against those systems rather than a sandbox.
Before you switch
- Let running milestones finish. The move is refused while a milestone is running. Milestones in review or with an open pull request don’t block it: their branches are on your git provider and carry over.
- Open chats are closed. The confirmation lists the chats that will close. New chats run in the new self-hosted environment.
During the transition
The project goes back into onboarding mode, and milestones are paused while you:- Connect a daemon. Install ModelDaemon on a machine running the project’s platform and connect it to a pool.
- Build the environment. The Morph Platform discovers the project’s dependencies and installs them on the daemon. This usually takes a few minutes.
- Validate setup. The setup chat runs your build, run, and test commands on your machine, and asks you only when it is blocked.
Moving while a milestone needs help
Sometimes a run is blocked by something only your own network can reach, such as a private registry, a VPN-only service, or a license file on your machine. When a run is waiting for your help, the help chat has a Move to self-hosted button. It opens the same Build Environment drawer, with a few more choices:- Push the work so far (checked by default). The Morph Platform commits the waiting run’s work, uncommitted changes included, and pushes it to the milestone’s branch. Uncheck it to discard that work.
- Other running milestones are cancelled too. The drawer names them. Their work since their last push is lost, so to keep it, wait for them to finish and come back.