Skip to content

Commit

Permalink
Correct numbering
Browse files Browse the repository at this point in the history
  • Loading branch information
tomchop committed Nov 29, 2024
1 parent 55e5916 commit 05c46eb
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions content/docs/updating.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ docker cp api:/app/yeti.conf /path/to/backup
cd yeti-docker/prod && docker compose down
```

3. Update
4. Update

- `git pull` will pull in the latest changes to the Docker compose setup
(effectively changing your infrastructure, so be mindful of any breaking
Expand All @@ -41,37 +41,37 @@ git pull
docker compose pull
```

4. Run migrations
5. Run migrations

Sometimes the database schema changes between versions, and you need to run a
migration command to sync the database schema and the code that Yeti is running.

To do so:

```
```bash
docker compose run --rm api /docker-entrypoint.sh arangodb-migrate
```

5. Start the containers
6. Start the containers

```bash
docker compose up -d
```

6. _(optional)_ Restore database
7. _(optional)_ Restore database

```bash
docker compose run --rm -v $(pwd)/backup:/backup arangodb arangorestore --server.endpoint tcp://arangodb:8529 --input-directory /backup --server.database yeti --overwrite true
```

7. Restore configuration file
8. Restore configuration file

```bash
docker ps yeti.conf api:/app/
docker ps yeti.conf tasks:/app/
```

8. Restart containers
9. Restart containers

```bash
docker compose restarts tasks api
Expand Down

0 comments on commit 05c46eb

Please sign in to comment.