When
The artifact is a running app (development server) rather than static files, for demos, QA, or temporary sharing.
Outcome
- The server listens on a supported public Sandbox port.
- Authors can open a live port preview in Cohub.
- A published port App is used only when viewers need the live process.
- The team understands that a port App is usually not the default production shape.
Steps
- Prefer a static directory App for production-oriented demos when possible.
- Start the server inside the Space Sandbox (Agent or
cohub run). - Bind a supported public port according to current product docs.
- Open the port preview beside Chat and verify it after a cold Sandbox restart.
- Publish as an App target
portonly if viewers need the live process: ``bash cohub -s <spaceId> apps publish live-demo --port 5173 --json`` - Document restart behavior and Save the configuration, not only the running process.
- When stable, graduate to a directory App from
dist/.
Done when
- [ ] The preview loads for authors
- [ ] Restart instructions work on a cold Sandbox
- [ ] The port App's audience and lifetime are explicit
Avoid
- Using a port App as a permanent production home without process supervision
- Forgetting that hibernation and restarts kill ad-hoc servers
- Shipping absolute localhost links to external users