Step 13 — Deploy

Move from php pionia serve to persistent workers suitable for staging/production.

What you will learn

  • Download RoadRunner and run detached workers
  • Run optimize --production before cutover
  • Use maintenance mode during deploy
Before you start
  • Steps 1–11 complete (frontend optional)

Production checklist

composer install --no-dev -o
php pionia optimize --production
php pionia rr:setup
php pionia runserver --detach
curl -s http://127.0.0.1:8000/api/v1/ping

Zero-downtime deploy pattern:

php pionia maintenance:on --message="Deploying DeskFlow" --retry-after=120
# deploy artifacts, restart workers
php pionia maintenance:off

Guides: RoadRunner · Production performance · Maintenance.

Common mistakes

  • Running optimize on every code save in dev — reserve for deploy.
  • Forgetting opcache.enable_cli=1 for workers — see production PHP ini example in ops guide.