gradio/website/reload_website.sh

17 lines
349 B
Bash
Raw Normal View History

#!/bin/bash
set -e
2021-12-17 11:41:14 +08:00
. /home/ubuntu/.bashrc
export PATH="/usr/local/bin:/usr/bin:/bin"
2021-12-17 07:16:41 +08:00
git pull > /tmp/git_changes.txt
if ! grep -q "gradio/version.txt" /tmp/git_changes.txt; then
echo "NO CHANGES"
2021-12-17 07:16:41 +08:00
else
echo "Checking gradio version.."
python check_version.py
2021-12-17 07:16:41 +08:00
echo "Reloading..."
docker-compose build
2021-12-17 07:08:27 +08:00
docker-compose up -d
fi