Upgrade
caution
We recommend that you back up database and configuration files before upgrading. Generally, we guarantee that the upgrade does not affect the existing data. To back up data means that you have the option to roll back even if the upgrade fails, or you do not want the advanced version.
- Docker Compose
- Docker
- Binary
If you use docker-compose to install answer, it is very easy to upgrade.
docker-compose pull
docker-compose down
docker-compose up -d
If you are using docker to install answer, the upgrade steps are as follows.
docker pull answerdev/answer:latest
docker stop answer
docker rm answer
docker run -d -p 9080:80 -v answer-data:/data --name answer answerdev/answer:latest
If you are using a binary installation of answer, the upgrade steps are as follows.
- Download the latest binary version for your system. https://github.com/answerdev/answer/releases
- Stop old version
- Execute the upgrade command
./answer upgrade -C ./answer-data/
- Run the latest version
./answer run -C ./answer-data/