Deployments
FlyWP supports deploying WordPress sites directly from a Git repository. Push to your branch and FlyWP will automatically pull, build, and deploy.
When you push to your configured branch, FlyWP runs the following steps:
composer install, npm run build)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
FlyWP keeps the last 5 deployments. To rollback, go to Deployments → History and click Rollback on any previous deployment.