You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
v3: self-hosting support for latest packages (#1319)
* display --profile flag after init if used
* add containerfile debug logs
* log all indexing errors in case of connection issues
* specify dockerfile syntax version
* add network flag for self-hosting
* move all self-hosting tags to latest
* add self-hosting update section
* manual setup subsection
* registry flag implies push
* add changeset
By default, the Trigger.dev webapp sends telemetry data to our servers. This data is used to improve the product and is not shared with third parties. If you would like to opt-out of this, you can set the `TRIGGER_TELEMETRY_DISABLED` environment variable in your `.env` file. The value doesn't matter, it just can't be empty. For example:
289
+
Once you have everything set up, you will periodically want to update your Docker images. You can easily do this by running the update script and restarting your services:
292
290
293
291
```bash
294
-
TRIGGER_TELEMETRY_DISABLED=1
292
+
./update.sh
293
+
./stop.sh && ./start.sh
294
+
```
295
+
296
+
Sometimes, we will make more extensive changes that require pulling updated compose files, scripts, etc from our docker repo:
297
+
298
+
```bash
299
+
git pull
300
+
./stop.sh && ./start.sh
301
+
```
302
+
303
+
Occasionally, you may also have to update your `.env` file, but we will try to keep these changes to a minimum. Check the `.env.example` file for new variables.
304
+
305
+
### From beta
306
+
307
+
If you're coming from the beta CLI package images, you will need to:
308
+
-**Pull changes from our docker repo.** We've added a new container for [Electric](https://github.com/electric-sql/electric) and made some other improvements.
309
+
310
+
```bash
311
+
# wherever you cloned the docker repo
312
+
git pull && ./stop.sh && ./start.sh
313
+
```
314
+
315
+
## Version locking
316
+
317
+
There are several reasons to lock the version of your Docker images:
318
+
-**Backwards compatibility.** We try our best to maintain compatibility with older CLI versions, but it's not always possible. If you don't want to update your CLI, you can lock your Docker images to that specific version.
319
+
-**Ensuring full feature support.** Sometimes, new CLI releases will also require new or updated platform features. Running unlocked images can make any issues difficult to debug. Using a specific tag can help here as well.
320
+
321
+
By default, the images will point at the latest versioned release via the `v3` tag. You can override this by specifying a different tag in your `.env` file. For example:
322
+
323
+
```bash
324
+
TRIGGER_IMAGE_TAG=v3.0.5
295
325
```
296
326
297
327
## CLI usage
@@ -303,7 +333,7 @@ This section highlights some of the CLI commands and options that are useful whe
303
333
To avoid being redirected to the [Trigger.dev Cloud](https://cloud.trigger.dev) login page when using the CLI, you can specify the URL of your self-hosted instance with the `--api-url` or `-a` flag. For example:
304
334
305
335
```bash
306
-
npx trigger.dev@beta login -a http://trigger.example.com
336
+
npx trigger.dev@latest login -a http://trigger.example.com
307
337
```
308
338
309
339
Once you've logged in, the CLI will remember your login details and you won't need to specify the URL again with other commands.
@@ -313,38 +343,38 @@ Once you've logged in, the CLI will remember your login details and you won't ne
313
343
You can specify a custom profile when logging in. This allows you to easily use the CLI with our cloud product and your self-hosted instance at the same time. For example:
314
344
315
345
```
316
-
npx trigger.dev@beta login -a http://trigger.example.com --profile my-profile
346
+
npx trigger.dev@latest login -a http://trigger.example.com --profile my-profile
317
347
```
318
348
319
349
You can then use this profile with other commands:
320
350
321
351
```
322
-
npx trigger.dev@beta dev --profile my-profile
352
+
npx trigger.dev@latest dev --profile my-profile
323
353
```
324
354
325
355
To list all your profiles, use the `list-profiles` command:
326
356
327
357
```
328
-
npx trigger.dev@beta list-profiles
358
+
npx trigger.dev@latest list-profiles
329
359
```
330
360
331
361
#### Verify login
332
362
333
363
It can be useful to check you have successfully logged in to the correct instance. You can do this with the `whoami` command, which will also show the API URL:
On [Trigger.dev Cloud](https://cloud.trigger.dev), we build deployments remotely and push those images for you. When self-hosting you will have to do that locally yourself. This can be done with the `--self-hosted` and `--push` flags. For example:
@@ -353,3 +383,12 @@ When running the CLI in a CI environment, your login profiles won't be available
353
383
variables to point at your self-hosted instance and authenticate.
354
384
355
385
For more detailed instructions, see the [GitHub Actions guide](/github-actions).
386
+
387
+
388
+
## Telemetry
389
+
390
+
By default, the Trigger.dev webapp sends telemetry data to our servers. This data is used to improve the product and is not shared with third parties. If you would like to opt-out of this, you can set the `TRIGGER_TELEMETRY_DISABLED` environment variable in your `.env` file. The value doesn't matter, it just can't be empty. For example:
0 commit comments