From 05c46ebe1ddbb63eded963ad532b0f873020f3bd Mon Sep 17 00:00:00 2001 From: Thomas Chopitea Date: Fri, 29 Nov 2024 16:11:35 +0000 Subject: [PATCH] Correct numbering --- content/docs/updating.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/content/docs/updating.md b/content/docs/updating.md index 2951e88..6a73dc6 100644 --- a/content/docs/updating.md +++ b/content/docs/updating.md @@ -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 @@ -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