Mendloop Docs Request access

Upgrade

Pull a new version, rebuild and migrate, with your data kept in Docker volumes.

On a server set up with the deploy script#

On the serverShell
cd ~/mendloop && git pull && sudo ./scripts/deploy-server.sh

The 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#

TerminalShell
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 rest

Before you upgrade#

  • Take a database dump or a snapshot. See Backups.
  • Keep the same MENDLOOP_MASTER_KEY and MENDLOOP_SECRET_KEY. If the master key changes, existing sessions and encrypted data stop working.

After you upgrade#

  • mendloop doctor checks configuration, Postgres, Redis, migrations, storage, keys and email.
  • /readyz answers 503 until the migrations have run.
  • A page that shows relation … does not exist means the migrations haven't run: run them, then reload.