How previews are created
- Per pull request - with the GitHub integration connected, Specific creates a preview environment for each open pull request, keeps it up to date as new commits are pushed, and posts its URL back on the PR. Connect GitHub from the dashboard.
- Manually - deploy one on demand with
specific deploy --preview.
specific status to list every environment and its env_... ID, including preview environments. Target a preview with --environment on commands that take one.
What’s copied from the parent
A preview branches off a parent environment and starts from its data. Each resource is forked in the way that’s fastest for that service:- Postgres databases are branched - an instant, copy-on-write branch.
- Object storage buckets are forked.
- Volumes are cloned - an instant, copy-on-write copy of the parent volume.
Observability
Previews stream logs and metrics exactly like long-lived environments. Query them by targeting the preview with--environment: