2019-12-28 13:26:58 -05:00
|
|
|
# Guide for upgrade your flarum container
|
|
|
|
|
2022-06-05 17:01:08 -04:00
|
|
|
### Upgrade to v1.3.0 from v1.2.0
|
2021-05-30 18:06:44 -04:00
|
|
|
|
|
|
|
:warning: Backup your database, config.php, composer.lock and assets folder
|
|
|
|
:warning: Disable all 3rd party extensions prior to upgrading in panel admin.
|
|
|
|
|
|
|
|
1 - Update your docker-compose file, see an example [here](https://github.com/mondediefr/docker-flarum/tree/master#2---docker-composeyml)
|
|
|
|
|
|
|
|
```yml
|
|
|
|
version: "3"
|
|
|
|
|
|
|
|
services:
|
|
|
|
flarum:
|
2022-06-05 17:01:08 -04:00
|
|
|
image: mondedie/flarum:1.3.0
|
2021-05-30 18:06:44 -04:00
|
|
|
...
|
|
|
|
```
|
|
|
|
|
|
|
|
2 - Pull the last docker images
|
|
|
|
|
|
|
|
```sh
|
2022-01-27 15:54:55 -05:00
|
|
|
docker pull mondedie/flarum:1.2.0
|
2021-05-30 18:06:44 -04:00
|
|
|
docker-compose stop flarum
|
|
|
|
docker-compose rm flarum
|
|
|
|
docker-compose up -d flarum
|
|
|
|
```
|
|
|
|
|
|
|
|
3 - Updating your database and removing old assets & extensions
|
|
|
|
|
|
|
|
```sh
|
|
|
|
docker exec -ti flarum php /flarum/app/flarum migrate
|
|
|
|
docker exec -ti flarum php /flarum/app/flarum cache:clear
|
|
|
|
```
|
|
|
|
|
|
|
|
After that your upgrade is finish. :tada: :tada:
|
|
|
|
|
2022-06-05 17:01:08 -04:00
|
|
|
### Upgrade to v1.2.0 from v1.0.2
|
2020-11-17 11:42:13 -05:00
|
|
|
|
|
|
|
:warning: Backup your database, config.php, composer.lock and assets folder
|
|
|
|
:warning: Disable all 3rd party extensions prior to upgrading in panel admin.
|
|
|
|
|
|
|
|
1 - Update your docker-compose file, see an example [here](https://github.com/mondediefr/docker-flarum/tree/master#2---docker-composeyml)
|
|
|
|
|
|
|
|
```yml
|
|
|
|
version: "3"
|
|
|
|
|
|
|
|
services:
|
|
|
|
flarum:
|
2022-06-05 17:01:08 -04:00
|
|
|
image: mondedie/flarum:1.2.0
|
2020-11-17 11:42:13 -05:00
|
|
|
...
|
|
|
|
```
|
|
|
|
|
|
|
|
2 - Pull the last docker images
|
|
|
|
|
|
|
|
```sh
|
2022-06-05 17:01:08 -04:00
|
|
|
docker pull mondedie/flarum:1.2.0
|
2020-11-17 11:42:13 -05:00
|
|
|
docker-compose stop flarum
|
|
|
|
docker-compose rm flarum
|
|
|
|
docker-compose up -d flarum
|
|
|
|
```
|
|
|
|
|
|
|
|
3 - Updating your database and removing old assets & extensions
|
|
|
|
|
|
|
|
```sh
|
|
|
|
docker exec -ti flarum php /flarum/app/flarum migrate
|
|
|
|
docker exec -ti flarum php /flarum/app/flarum cache:clear
|
|
|
|
```
|
|
|
|
|
|
|
|
After that your upgrade is finish. :tada: :tada:
|