From b17e04444d9fbf1a276c3a714d6e43fda5fa2b47 Mon Sep 17 00:00:00 2001 From: Tushar Makkar Date: Tue, 5 May 2020 07:22:31 +0530 Subject: [PATCH] Updated faq with rebuild info (#734) Updated FAQ for rebuilding by latest doccano image --- docs/faq.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/docs/faq.md b/docs/faq.md index 9911ca54..7a49f846 100644 --- a/docs/faq.md +++ b/docs/faq.md @@ -22,3 +22,25 @@ Please check the following list. ![Add a user](./images/faq/add_user.png) 2. Add the user to the project in the member page(`/projects/{project_id}/members`). 3. **Logout from Django Admin site.** [You'll face login error without logout of Django Admin site](https://github.com/doccano/doccano/issues/723). + +## I want to update to the latest doccano image + +1. Execute `git pull` to reflect the latest doccano. +2. Delete the volume that `doccano_www` and `doccano_static_volume`. + **Do not delete `doccano_postgres_data` because it stores your projects data.** +3. Rebuild the doccano image. + +The following commands are the procedure for 2~3. + +``` +❯ docker volume ls +DRIVER VOLUME NAME +local doccano_node_modules +local doccano_postgres_data +local doccano_static_volume +local doccano_venv +local doccano_www +❯ docker volume rm doccano_www +❯ docker volume rm doccano_static_volume +❯ docker-compose -f docker-compose.prod.yml build --no-cache +```