Upgrade Guide
Docker Compose Deployment
One-Click Update
To upgrade using Docker Compose, run the following command in the project root directory:
bash
bash upgrade.sh
If prompted for environment variable updates, manually compare and update .env
based on .example.env
.
Manual Deployment
Frontend Upgrade
- Download the latest frontend source code from the repository.
- Extract and overwrite the existing files in the website root directory.
- Run the following commands:
bash
php composer.phar upgrade
php think migrate:run
Backend Upgrade
Go to the directory where the docker-compose.yml
file is located and execute the following commands:
bash
docker compose pull
docker compose down
docker compose up -d