FlyWP

Deployments

Git Deployments

FlyWP supports deploying WordPress sites directly from a Git repository. Push to your branch and FlyWP will automatically pull, build, and deploy.

Connecting a Repository

  1. Go to Site Dashboard → Deployments
  2. Click Connect Repository
  3. Authenticate with GitHub, GitLab, or Bitbucket
  4. Select the repository and branch to deploy

Deployment Flow

When you push to your configured branch, FlyWP runs the following steps:

  1. Pull the latest code from Git
  2. Run your build commands (e.g., composer install, npm run build)
  3. Sync files to the live site using an atomic symlink swap
  4. Run any post-deployment hooks
  5. Purge caches (FastCGI + object cache)

Deployment Hooks

You can configure custom commands to run at different stages of the deployment:

# .flywp/deploy.yml
before_install:
  - echo "Starting deployment..."

after_install:
  - composer install --no-dev --optimize-autoloader
  - wp cache flush

after_live:
  - wp rewrite flush

Rollbacks

FlyWP keeps the last 5 deployments. To rollback, go to Deployments → History and click Rollback on any previous deployment.

Was this page helpful?