Skip to content

Docs: deploy-web-aot.md quickstart (phpc deploy + PHPC_DEPLOY_ROOT + nginx CGI) #635

@PurHur

Description

@PurHur

Problem

#445 is the umbrella production guide. #609 ✅ landed phpc deploy, and #612 / #623 track deploy-root E2E tests — but README still lacks a short, copy-paste path from:

phpc build --projectphpc deployPHPC_DEPLOY_ROOT → nginx CGI snippet

Contributors grep issues instead of one doc page.

Goal

Add docs/deploy-web-aot.md (≤200 lines) with:

  1. Build + deploy commands for examples/002-StaticWeb (AOT today) and examples/003-MiniWebApp (blocked note → AOT: Native user-class object model for phpc build --project #568)
  2. Dist layout table: bin/app, public/, templates/, assets/, phpc.json, README.deploy
  3. PHPC_DEPLOY_ROOT — export before running binary; link AOT: Runtime include() of deploy-root PHP via phpc_deploy_path() #623
  4. nginx fastcgi_pass / cgi illustrative block (not CI-tested)
  5. Local verify checklist: phpc deploy, QUERY_STRING=… ./bin/app, make examples-web-smoke

Link from README “Developing web apps” and lib/Web/ProjectDeploy.php README.deploy template.

Scope

Acceptance criteria

  • grep deploy-web-aot README.md finds link
  • All commands in doc run on php-compiler:22.04-dev for 002-StaticWeb dist smoke
docker run --rm -v "$(pwd):/compiler" -w /compiler php-compiler:22.04-dev bash -lc '
  phpc deploy examples/002-StaticWeb -o /tmp/static-dist
  test -x /tmp/static-dist/bin/app
  grep PHPC_DEPLOY_ROOT /tmp/static-dist/README.deploy
'

Dependencies

Links

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:toolingTooling / CI / docsarea:webWeb / CGI / superglobalsenhancementNew feature or requestphase-3:aotPhase 3 – AOT deployment

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions