Skip to content

Commit 0fe9dc0

Browse files
committed
docs: fix self-hosting section in deploy docs
- Move --local-build param to correct location with other options - Fix self-hosting link to /self-hosting/overview - Show simple deploy command first (after CLI login) - Move CI env vars mention to secondary position
1 parent 68e5f96 commit 0fe9dc0

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

docs/snippets/cli-commands-deploy.mdx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,10 @@ npx trigger.dev@latest deploy [path]
7777
Turn off syncing environment variables with the Trigger.dev instance.
7878
</ParamField>
7979

80+
<ParamField body="Local build" type="--local-build">
81+
Force building the deployment image locally using your local Docker. This is automatic when self-hosting.
82+
</ParamField>
83+
8084
### Common options
8185

8286
These options are available on most commands.
@@ -85,14 +89,10 @@ These options are available on most commands.
8589

8690
### Self-hosting
8791

88-
When [self-hosting](/open-source-self-hosting), builds are performed locally by default. Set the `TRIGGER_ACCESS_TOKEN` environment variable and point to your self-hosted instance using `TRIGGER_API_URL` or `--api-url`:
92+
When [self-hosting](/self-hosting/overview), builds are performed locally by default. Once you've logged in to your self-hosted instance using the CLI, you can deploy with:
8993

9094
```bash
91-
TRIGGER_ACCESS_TOKEN=your_token TRIGGER_API_URL=https://your-trigger-instance.com npx trigger.dev@latest deploy
95+
npx trigger.dev@latest deploy
9296
```
9397

94-
For CI/CD setup with self-hosting, see the [GitHub Actions guide](/github-actions#self-hosting).
95-
96-
<ParamField body="Local build" type="--local-build">
97-
Force building the deployment image locally using your local Docker. This is automatic when self-hosting.
98-
</ParamField>
98+
For CI/CD environments, set `TRIGGER_ACCESS_TOKEN` and `TRIGGER_API_URL` environment variables. See the [GitHub Actions guide](/github-actions#self-hosting) for more details.

0 commit comments

Comments
 (0)