Skip to content
    Guide

    Choosing staging or production for each Gus fix

    Last updated

    Most careful WordPress teams keep a staging site: a private copy of the live site where changes can be tried without visitors seeing them. Gus is built around this. For every fix, you decide whether it runs on staging, on the live site (production), or on both.

    This guide shows you how to link your environments, how to choose where each fix runs, how to see the exact change before you approve it, and how to promote a fix from staging to production once it has proved itself.

    What an environment is

    An environment is one copy of the same website. MaintainHQ understands four labels:

    • production: the live site your visitors use.
    • staging: a private copy for trying changes before they go live.
    • development: a copy where new work is built.
    • testing: a copy used for testing.

    Each environment is connected to MaintainHQ as its own site, with its own MaintainHQ plugin. Linking them tells Gus they are the same project, so a problem found on one can be fixed on any of them.

    Linking your environments

    1. Connect the staging site to MaintainHQ like any other site, if you have not already.
    2. Open Diagnose & fix, choose the live site at the top right and stay on the Diagnose tab.
    3. On the Environments card, press Link an environment.
    4. Choose the staging site from the list, then set "It is the staging environment" (or another label).
    5. Press Link. Both sites now appear on the card, with "this site" next to the one you are viewing.

    To change a label, use the drop-down next to each site on the card. To separate a site from the project, press the unlink button next to it.

    If the Link an environment button is greyed out, there is no other connected site to link. The card says "Connect the other environment as a site first, then link it here."

    Choosing where each fix runs

    Every fix in a plan has a Deploy to row with a tick box for each linked environment. A fix runs only where you tick. If you tick nothing, it runs nowhere.

    You can make a different choice for each fix in the same plan. For example, tick production for a low-risk clean-up, and staging only for a plugin update.

    Gus only ever runs a fix on the environment named in the approval, and only if that site is still linked to the plan’s site and owned by the same account.

    Seeing the exact change on each environment

    The change shown in a fix is how it looked on the environment Gus diagnosed. Your staging and live sites may differ slightly, so next to each environment there is an exact change link. Press it to see precisely what would change on that environment, fetched fresh from the site.

    • "(already in place: nothing would change)" means that environment already has the fix. Approving it there does nothing harmful; Gus skips the change.
    • "Preview unavailable" with a reason means Gus could not reach that environment just now. Check it is online and connected.

    Looking at a preview never changes the site.

    Promoting a fix from staging to production

    Once a fix shows Applied and verified on one environment, a Promote to button appears for each linked environment that has not had it yet, for example Promote to production.

    1. Check the staging site yourself if you want to: browse the pages the fix affects.
    2. Press Promote to production.
    3. The box explains that the fix was applied and verified on staging, and that approving runs it on production with a fresh backup and check there.
    4. Press Approve promotion. If production has a maintenance window, the fix waits for it unless you tick Run now, outside the maintenance window.

    Promotion is always a separate approval. A fix approved for staging never moves to production by itself. The promoted run is marked with a "promoted" badge.

    Good practice

    • Send medium and high-risk fixes to staging first, then promote.
    • Keep staging reasonably up to date with production, so a fix that works there is likely to work live.
    • Use the exact change link on production before promoting, especially if the two sites have drifted apart.
    • Run a fresh diagnosis on production after a batch of fixes, to confirm the scores improved.

    Frequently asked questions

    Do I need a staging site to use Gus fixes?
    No. You can approve fixes for production only. Every fix is still backed up first, checked afterwards and rolled back automatically if the site gets worse.
    Can Gus copy my live site to staging?
    No. Gus does not create staging copies. Create the copy with your host or your usual tools, connect it to MaintainHQ, then link it.
    Can a problem found on staging be fixed on production?
    Yes. Findings from any linked environment can become a fix plan, and each fix can be approved for any environment in the project.
    What happens if staging and production are different?
    Use the exact change link to see what would happen on each. If production already has the change, Gus skips it. Gus also checks the result on each environment separately.

    Let MaintainHQ run the routine

    Updates with automatic rollback, backups, uptime, security checks and client reports, with Gus to fix what breaks.

    Start free trial

    From £29 a month for up to 2 sites. Every plan starts with a 14-day trial.