Skip to content

WP Engine

WP Engine is the hosting platform we use for some WordPress projects. It provides environment management, automatic backups, and deployment tools.

This section explains how WP Engine environments work, how we use backups, and how we deploy code.


Each WP Engine project usually has three environments (same ones as we use in Terra): Development (Dev), Staging (Stage) and Production (Prod).

Not all projects have all three environments created by default. We need to create them when needed. For example:

  • Some projects may start with Dev only
  • Stage is created when needed
  • Production must be created manually if it doesn’t exist yet
  1. Click Add environment
  2. Start from a blank environment
  3. Select the environment type
  4. Assign a name
  5. Confirm creation

Once created, the environment behaves like any other (with backups, deploys, etc.).


WP Engine automatically creates daily backups for each environment.

  • Backups are environment-specific
  • Dev, Stage, and Production each have their own backup history

Before making major or risky changes, we usually create a manual backup.

When creating a manual backup, you can:

  • Add a description
  • Choose who receives notifications

This gives us a safe restore point in case something goes wrong.


When sharing work with a client or preparing a release, we often sync environments.

From Dev, you can push changes to another environment:

  1. Click Push
  2. Select the target environment (Stage)
  3. Choose Full push

Push

Alternatively, from Stage you can:

  1. Click Pull from
  2. Select the source environment (Dev)
  3. Choose Full

Pull

The arrow direction indicates where the content is coming from. These two examples do the same: taking everything Dev has into Stage.


Deployments in WP Engine are done via SFTP.

When a new environment is created, SFTP access is not created automatically.

To enable deployments:

  1. Go to SFTP Users
  2. Add a new user
  3. Name it (usually prefixed with terra)
  4. Generate a password
  5. Copy the password before saving
  1. Save the user

After creating the SFTP user:

  1. Go to the project repository
  2. Open the SFTP configuration sftpConfig.js file
  3. Update:
    • Host
    • Username
    • Password
    • Path (theme path is always the same)

Once configured, the environment is ready for deployment.


  • If you need to perform an action and don’t have access, contact someone who does.
  • Always make a manual backups before making risky changes
  • Daily backups are created automatically

Knowledge Check

Test your understanding of this section

Loading questions...