Preview Deploy
Deploy feature branches as isolated preview environments with deterministic ports, automatic cleanup, and age tracking.
Preview Deploy
Triggered when deploying any branch other than main/master. Preview deploys are perfect for testing feature branches.
- Deterministic ports -- Each branch gets a port in the 3100-3199 range (derived from branch name hash)
- Max 5 previews -- Prevents resource exhaustion on the server
- Port reuse -- Redeploying the same branch reuses the same port
- Easy cleanup -- Stop previews with
lift push --stop <branch> - Age tracking --
lift push --listshows preview ages and warns about stale ones (7+ days)
Examples
# Deploy preview
$ git checkout feat/new-api
$ lift push
Live at: http://168.119.60.42:3142
# List all previews
$ lift push --list
# Stop a preview
$ lift push --stop feat/new-api
Related
- lift push -- The deploy command
- Production Deploy -- Main branch deployments
- Compose & Health Checks -- Build detection and health check details