update my nextcloud instance to the latest version
Background: wanted to keep my nextcloud instance up2date
verify your git remote repository (in your nextcloud workdir):
root$ git remote -v
Output:
origin https://your_user@git.zom.bi/zombi/nextcloud (fetch)
origin https://your_user@git.zom.bi/zombi/nextcloud (push)
pull latest changes from our master branch:
root$ git pull
build from our new docker-compose file; enable maintenance mode; start docker container; upgrade nextcloud; disable maintenance mode:
root$ docker-compose build && docker-compose exec -u www-data webservice php occ maintenance:mode --on && docker-compose up -d && docker-compose exec -u www-data webservice php occ upgrade && docker-compose exec -u www-data webservice php occ maintenance:mode --off