Review and plan a primary domain migration

Review a primary domain migration before changing a live site.

Review a primary domain migration before changing a live site. This guide uses Herne 3.55.43, real views and fictional Northstar Studio data. Plans and status results are illustrative. No preflight request, migration job or server operation runs. The current version has limits that require stopping before live execution.

Demonstration: English interface and synthetic English voice, fictional Northstar Studio. Every plan and status is illustrative. The real confirmation is shown without submission. No live DNS, certificate, file move, queue dispatch or host change occurs. Full text and subtitles are available in six languages.

Watch the walkthrough

English audio · 7 min 49 sec · Subtitles in all six site languages.

1. Choose the site and understand current limits

Review a primary domain migration before changing a live site. This guide uses Herne 3.55.43, real views and fictional Northstar Studio data. Plans and status results are illustrative. No preflight request, migration job or server operation runs. The current version has limits that require stopping before live execution.

An administrator opens the intended site, then Settings and Go live / primary domain. Site ownership alone does not grant access. Adding an alias keeps the primary domain and existing root. This migration changes the domain, site slug and active paths, and can briefly interrupt service. Verify the old domain in the page header.

In this version, keeping the old domain as a redirect conflicts with a later migration check: the generated configuration includes that domain, while the check rejects its presence. The redirect option starts selected. Do not treat this default as a supported successful path. Resolve this version issue with the operator before any live start; do not use this guide as a workaround.

Settings menu with administrator Go live / primary domain for fictional stage.example.test.

2. Establish prerequisites and recovery arrangements

The target must already belong to this site as an active alias, included in SSL and serving the site rather than redirecting to its primary domain. Separately verify domain ownership, DNS, a valid certificate and the application through that hostname. Preflight checks saved alias flags; it does not perform those external readiness tests or create DNS records.

A target used as another site primary domain or another site alias is rejected. The old and new names must differ. Live-provisioned mail hosting blocks canonical migration; arrange mail migration separately first. Do not remove mail or another site merely to pass validation. Existing site-wide external redirects and a disabled site can also prevent the intended application response; review them independently.

Before an eventual approved migration, coordinate a maintenance window, writes and background activity with the operator. Review recoverable file and database backups, space for copies and backups, and service permissions. The supervised site-apps queue must be working. A queued request is not a reservation of disk capacity or a successful backup. Keep a private record of current settings and recovery responsibilities.

3. Compare options with the preflight plan

Enter a bare target hostname, without a scheme, port or path; use its normalized lowercase ASCII form. The panel validates the name before planning. Serve www requests the new primary domain www host as an additional managed name; it is not an independent serving site. Verify its DNS and certificate requirements too. The displayed example domains are fictional and must not be used as live targets.

There is a second current-version mismatch. After a browser preflight with the old-domain redirect unchecked, the returned form can show it checked again, while the saved plan and confirmation retain the unchecked choice. Changing the upper form does not update an existing confirmation plan. If the options and plan disagree, stop. Do not infer the final choice from the visible checkbox alone.

Run preflight is a planning submission. It checks recorded site and alias conditions and returns proposed steps without executing the move or creating the migration backups. It does not prove DNS, TLS, free space, application compatibility or worker health. The start request recomputes a plan; the preview is not an immutable reservation. Review every line against the intended hostname and options.

Unsubmitted target form with the old-domain redirect selected by default.
Synthetic unchecked-input omission: the checkbox reappears selected above a plan that removes the old domain.

4. Inspect paths, backups and typed confirmation

The panel workflow always plans file movement and backups. It copies the complete site container to the new domain path and later retires the old container under a timestamped retired path. It updates the slug, app installation metadata and applicable absolute deployment paths. An existing target environment file has APP_NAME and APP_URL updated; this is not a general rewrite of application data or third-party configuration.

The job creates a migration metadata JSON file and requests a successful web-root backup plus a backup for every attached database before copying. The status page backup path identifies that metadata file, not a complete content archive. Keep it private: it contains internal configuration snapshots. Backup failure stops progress, but the existence of metadata alone does not prove recoverable files or databases.

Start migration below the plan opens a confirmation dialog. It requires the exact target domain text. The final Start migration submits the stored target and options and can enqueue the real operation. Editing the upper form after preview does not synchronize this dialog. This demonstration only opens and fills it, then stops. With the documented version mismatches unresolved, do not submit a live migration.

Stage Meaning and limit
Run preflight Plan only; no migration backups or external readiness proof
Start migration below plan Opens typed confirmation
Final Start migration Submits target/options; may enqueue real host changes
Manually synthetic migration plan for studio.example.test; no preflight or migration was executed.
Real confirmation dialog filled with fictional target studio.example.test; final Start migration is not submitted.

5. Understand queue execution and status

A confirmed request recomputes planning checks, creates a Queued migration record and dispatches to site-apps. Another queued or running migration for the site blocks a new request. The job allows one attempt with a thirty-minute timeout. Conditions can change while waiting; planning is not a guarantee of later success. Do not submit a duplicate because the page seems slow.

During execution, the service changes records and paths, refreshes certificates when site SSL is enabled, and applies Nginx and PHP-FPM configuration. It then clears application caches and reprovisions existing provisioned queue workers and the scheduler for the new path. These are multiple host operations. A database change, certificate request or successful preflight alone does not establish a completed, healthy migration.

The administrator status page shows the old and new domains and the current Queued, Running, Completed or Failed state. Refresh reloads that record manually; it is not a retry or cancel control. Keep the status reference. If the job remains queued or running unexpectedly, ask the operator to inspect the queue and actual server state before taking another action.

Illustrative Queued status with old and new domains and manual Refresh.

6. Verify results and stop uncertain retries

The illustrative Completed screen exposes the metadata backup path and Open site. In a real completed migration, independently verify the new primary domain, intended www behavior, TLS, redirects, file paths, application login and assets, deployment, workers and scheduled tasks. Check the agreed behavior of the old domain too. Completed reports the job result; it is not a browser or application acceptance test.

Failed shows a generic message, not raw server output. The service attempts to restore recorded database and old Nginx state and existing service units, but host operations are not one atomic transaction. A failure is not proof of full rollback; earlier certificate or filesystem effects may remain. The status page may not show a backup path on failure. Preserve evidence privately and let the operator establish the actual state.

This page has no automatic rollback, retry or cancel button. Do not delete retired files, overwrite a target directory, edit migration records or use the command line to bypass an unresolved result. For this version, keep the reviewed plan and stop before live submission until the documented redirect and option inconsistencies are resolved. Resume only with the operator after source behavior and recovery arrangements have been rechecked.

State Response
Queued / Running Refresh and investigate delays; do not duplicate
Completed Independently verify domain, application, paths and services
Failed Private operator review; no proof of full rollback
Illustrative Completed status with fictional metadata JSON path and Open site; not a real migration result.
Illustrative Failed status with generic operator-review message; no retry or cancel control.
Herne documentation