mirror of
https://github.com/gradio-app/gradio.git
synced 2024-11-27 01:40:20 +08:00
7b44734b9e
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
16 lines
336 B
Bash
16 lines
336 B
Bash
#!/bin/bash
|
|
set -e
|
|
. /home/ubuntu/.bashrc
|
|
export PATH="/usr/local/bin:/usr/bin:/bin"
|
|
|
|
git pull > /tmp/git_changes.txt
|
|
|
|
if grep -q "Already up to date." /tmp/git_changes.txt; then
|
|
echo "NO CHANGES"
|
|
else
|
|
echo "Reloading..."
|
|
export LATEST_COMMIT=$(git log -1 --format="%H")
|
|
docker-compose build
|
|
docker-compose up -d
|
|
fi
|