Skip to content

DevEx: phpc init --profile fastcgiweb scaffold (parity with 009-FastCGIWeb) #2342

Description

@PurHur

Problem

#2331 will add examples/009-FastCGIWeb/ as the FastCGI integration fixture, but contributors lack a one-command scaffold like existing profiles:

Profile Example Init parity
miniwebapp 003 #632
sessionsweb 005 #1886
fileupload 006 #2004
throwsweb 007 —
selfhostprobe 008 #2220 ✅
fastcgiweb 009 missing

Presenters copying nginx + phpc deploy steps from #445 need a reproducible tree without hand-editing phpc.json.

Goal

  1. templates/init-fastcgiweb/ mirroring Examples: 009-FastCGIWeb minimal fixture for phpc deploy + FastCGI adapter #2331 canonical layout (example.php, phpc.json, minimal public/)
  2. ./phpc init --profile fastcgiweb <dir> copies template
  3. script/check-init-fastcgiweb-parity.sh (same pattern as check-init-selfhostprobe-parity.sh CLI: phpc init --profile selfhostprobe — scaffold examples/008-SelfHostProbe #2220)
  4. Optional INIT_FASTCGIWEB_PARITY_GATE in ci-fast.sh (default 0 until Examples: 009-FastCGIWeb minimal fixture for phpc deploy + FastCGI adapter #2331 lands)

Acceptance criteria

Verification (local / Docker only)

./phpc init --profile fastcgiweb /tmp/fcgi-test
./phpc lint /tmp/fcgi-test/example.php
./script/check-init-fastcgiweb-parity.sh

Harness:

./script/docker-exec.sh -- bash -lc 'source script/php-env.sh && ./phpc init --profile fastcgiweb /tmp/fcgi-test && ./phpc lint /tmp/fcgi-test/example.php'

Dependencies

Links

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions