Skip to content

Commit f89d93b

Browse files
committed
Update self-hosting docs for switch to latest
1 parent 2dbf550 commit f89d93b

File tree

1 file changed

+20
-5
lines changed

1 file changed

+20
-5
lines changed

docs/open-source-self-hosting.mdx

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ sudo apt-get install -y \
8383
```bash
8484
git clone https://github.com/triggerdotdev/docker
8585
cd docker
86-
git checkout v3
8786
```
8887

8988
2. Run the start script and follow the prompts
@@ -305,11 +304,27 @@ Occasionally, you may also have to update your `.env` file, but we will try to k
305304
### From beta
306305

307306
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.
307+
- **Stash you changes.** If you made any changes, stash them with `git stash`.
308+
- **Switch branches.** We moved back to main. Run `git checkout main` in your docker repo.
309+
- **Pull in updates.** We've added a new container for [Electric](https://github.com/electric-sql/electric) and made some other improvements. Run `git pull` to get the latest updates.
310+
- **Apply your changes.** If you stashed your changes, apply them with `git stash pop`.
311+
- **Restart all services.** Run `./stop.sh && ./start.sh` and you're good to go.
312+
313+
In summary, run this wherever you cloned the docker repo:
309314

310315
```bash
311-
# wherever you cloned the docker repo
312-
git pull && ./stop.sh && ./start.sh
316+
# if you made changes
317+
git stash
318+
319+
# switch to the main branch and pull the latest changes
320+
git checkout main
321+
git pull
322+
323+
# if you stashed your changes
324+
git stash pop
325+
326+
# restart your services
327+
./stop.sh && ./start.sh
313328
```
314329

315330
## Version locking
@@ -321,7 +336,7 @@ There are several reasons to lock the version of your Docker images:
321336
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:
322337

323338
```bash
324-
TRIGGER_IMAGE_TAG=v3.0.5
339+
TRIGGER_IMAGE_TAG=v3.0.4
325340
```
326341

327342
## CLI usage

0 commit comments

Comments
 (0)