S Technologies's Logo

Color

Green
Teal
Indigo
Blue
Purple
Red
Rose

Mode

Light

Previews

Build a branch beside production, give it a hostname, and remove it when you are done.

bash
stechbd edge deploy:preview --domain=preview.example.com
stechbd preview rm feature-login

deploy:preview builds the directory beside production under a name: the checked-out Git branch, or the value of --name. Production is not touched.

--domain adds a hostname that points at the preview from its first request. A hostname that already points somewhere else is refused rather than moved, because moving one is stechbd domain target, on purpose.

A preview is not removed when its branch is deleted, because the panel never hears about the branch. stechbd preview rm <name> removes it. A hostname added with --domain stays, idle, so deploying the same name again brings it back.