diff --git a/self-hosted/deployment/upgrade.mdx b/self-hosted/deployment/upgrade.mdx index 90b31997..e5fd07e5 100644 --- a/self-hosted/deployment/upgrade.mdx +++ b/self-hosted/deployment/upgrade.mdx @@ -35,15 +35,15 @@ If your installation is very old, upgrade iteratively through intermediate Docke ```bash -docker-compose down -docker-compose pull -docker-compose up -d +docker compose down +docker compose pull +docker compose up -d ``` -Run the `rails db:chatwoot_prepare` option after accessing the console from one of the containers running the latest image. +Run the database preparation task after starting the containers with the updated image. ```bash -docker exec -it $(basename $(pwd))-rails-1 sh -c 'RAILS_ENV=production bundle exec rails db:chatwoot_prepare' +docker compose run --rm rails bundle exec rails db:chatwoot_prepare ``` ## Helm(Kubernetes)