Testing and Operations
The example app now includes three operational entrypoints:
example/bin/test-ciexample/bin/devexample/bin/prod
CI mode
example/bin/test-ci does the full example smoke path:
- build the example assets
- boot the fake renderer
- boot the example app under ASGI
- run Playwright against the live app
Use it locally from the repo root:
cd example
./bin/test-ci
Dev mode
example/bin/dev supports options for the assets pipeline, renderer, and app
server:
cd example
./bin/dev dev
./bin/dev static
./bin/dev prod
./bin/dev test
./bin/dev dev --port 3100 --renderer-port 3800 --asset-port 3035
Modes:
dev: rspack dev server with HMR and the live node rendererstatic: compiled assets served by Django, no dev serverprod: production bundle build plus the live node renderertest: deterministic CI mode used byexample/bin/test-ci
Production-style mode
example/bin/prod builds assets, collects static files by default, then boots
the ASGI app with uvicorn and DEBUG=0.
cd example
./bin/prod --renderer=node
./bin/prod --renderer=fake --renderer-port=3510
./bin/prod --renderer=none --skip-collectstatic
These scripts are intentionally close to the upstream dummy-app pattern, while staying Django-native.