2022-04-20 16:14:48 +08:00
|
|
|
#!/bin/bash
|
2022-03-11 21:15:24 +08:00
|
|
|
set -e
|
2021-12-17 11:41:14 +08:00
|
|
|
. /home/ubuntu/.bashrc
|
|
|
|
export PATH="/usr/local/bin:/usr/bin:/bin"
|
2021-12-14 14:02:19 +08:00
|
|
|
|
2021-12-17 07:16:41 +08:00
|
|
|
git pull > /tmp/git_changes.txt
|
2021-12-14 14:02:19 +08:00
|
|
|
|
2022-10-15 05:07:26 +08:00
|
|
|
if ! grep -q "gradio/version.txt" /tmp/git_changes.txt; then
|
2022-09-24 04:39:01 +08:00
|
|
|
echo "NO CHANGES"
|
2021-12-17 07:16:41 +08:00
|
|
|
else
|
2022-10-15 05:07:26 +08:00
|
|
|
echo "Checking gradio version.."
|
|
|
|
python check_version.py
|
2021-12-17 07:16:41 +08:00
|
|
|
echo "Reloading..."
|
2021-12-14 14:02:19 +08:00
|
|
|
docker-compose build
|
2021-12-17 07:08:27 +08:00
|
|
|
docker-compose up -d
|
2022-03-11 21:15:24 +08:00
|
|
|
fi
|