Update
Please always remember to back up your database before updating or redeploying.
After the update, please restart the container or clear the browser cache.
The image ships its Python dependencies (OCR and curl-impersonate included), so hot update only replaces the application code and does not reinstall dependencies. To change dependency versions, pull the image of the matching version tag.
The update never changes
AES_KEY. To rotate it, migrate the existing data first as described in Rotate AES_KEY, then change the variable.
Source Code Deployment Update
sh
# First cd to the directory of source code, execute the command and restart the process
wget https://gitee.com/qd-today/qd/raw/master/update.sh -O ./update.sh && \
sh ./update.shDocker Compose Deployment Update
sh
# First cd to the directory of docker-compose.yml, execute the command and restart the container
docker compose pull && \
docker compose up -dDocker Container Deployment Update
sh
# Enter the container background first, restart the container after executing the command
wget https://gitee.com/qd-today/qd/raw/master/update.sh -O /usr/src/app/update.sh && \
sh /usr/src/app/update.shForcibly synchronize the latest source code
sh
# First cd to the root directory of code, execute the command and restart the process
# docker exec -it "container name" /bin/sh
wget https://gitee.com/qd-today/qd/raw/master/update.sh -O ./update.sh && \
sh ./update.sh -f