Upgrade
Pull a new version, rebuild and migrate, with your data kept in Docker volumes.
On a server set up with the deploy script#
cd ~/mendloop && git pull && sudo ./scripts/deploy-server.shThe script rebuilds the images, restarts the services and runs the migrations. Data stays in Docker volumes.
If the new version changes the Docker daemon's settings, the script prints an ACTION NEEDED block instead of
restarting Docker under a live site. Pick a quiet moment and run sudo systemctl restart docker.
On a machine set up with make#
git pull
make migrate # brings the database up to date; safe to run every time
make doctor # says if migrations are behind, and checks the restBefore you upgrade#
- Take a database dump or a snapshot. See Backups.
- Keep the same
MENDLOOP_MASTER_KEYandMENDLOOP_SECRET_KEY. If the master key changes, existing sessions and encrypted data stop working.
After you upgrade#
mendloop doctorchecks configuration, Postgres, Redis, migrations, storage, keys and email./readyzanswers503until the migrations have run.- A page that shows
relation … does not existmeans the migrations haven't run: run them, then reload.