mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
The migrations worker (Appwrite→Appwrite migrations + CSV/JSON imports & exports) reads `_APP_MIGRATION_HOST` to call back into this instance's API. `_APP_MIGRATION_HOST` was introduced in #11229 (1.8.x / 1.9.x) but was never added to `app/config/variables.php`, so `appwrite install` / `appwrite upgrade` never write it into the generated `.env`. With the var unset, the migrations worker fails — on a fresh self-hosted install the first export hangs with no error (#11853). (Contributors and CI don't hit it because the repo's hand-maintained `.env` already has `_APP_MIGRATION_HOST=appwrite`; only the *installer-generated* `.env` is missing it.) Add `_APP_MIGRATION_HOST` to `app/config/variables.php` with default `appwrite` — the API service name in the standard Docker Compose setup, which is what the repo's own `.env` and the cloud Helm charts already use, and what the migration endpoint was hardcoded to before #11229. `appwrite install` and `appwrite upgrade` now write it into the generated `.env`, so fresh installs and upgrades have it set and the migration/import/export flows work. Scope: this PR fixes the install & upgrade paths only — it deliberately doesn't change the worker code. Fixes #11853