Upgrades
Bare Metal
If you perform a Mbin upgrade (eg. git pull
), be aware to always execute the following Bash script:
./bin/post-upgrade
Clear Cache
And when needed also execute: sudo redis-cli FLUSHDB
to get rid of Redis/KeyDB cache issues. And reload the PHP FPM service if you have OPCache enabled.
Docker
- Go to the
docker
directory:
cd docker
- (Re)build a new Mbin docker image (without using cached layers):
docker build --no-cache -t mbin -f Dockerfile ..
- Bring down the containers and up again (with
-d
for detach):
docker compose down
docker compose up -d
- Clear the caches, see section below "Clear caches".
Clear cache
Clear caches on running containers:
docker compose exec php bin/console cache:clear -n
docker compose exec redis redis-cli
> auth <your_redis_password>
> FLUSHDB