ente/server/scripts/deploy/update-and-restart-museum.sh

16 lines
447 B
Bash
Raw Permalink Normal View History

2024-03-18 04:38:36 +00:00
#!/bin/sh
# This script is meant to be run on the production instances.
#
# It will pull the latest Docker image, restart the museum process and start
2024-03-18 05:18:12 +00:00
# tailing the logs as a sanity check.
2024-03-18 04:38:36 +00:00
set -o errexit
# The service file also does this, but also pre-pull here to minimize downtime.
sudo docker pull rg.fr-par.scw.cloud/ente/museum-prod
sudo systemctl restart museum
sudo systemctl status museum | more
sudo tail -f /root/var/logs/museum.log