mirror of
https://github.com/gradio-app/gradio.git
synced 2024-12-27 02:30:17 +08:00
16 lines
404 B
Bash
Executable File
16 lines
404 B
Bash
Executable File
#!/bin/sh
|
|
. /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 "Already up to date. No reload."
|
|
else
|
|
echo "Reloading..."
|
|
if grep -q "demo/" /tmp/git_changes.txt; then
|
|
cd upload_notebooks && python run.py && cd ..
|
|
fi
|
|
docker-compose build
|
|
docker-compose up -d
|
|
fi |