copyright_checker / update_and_restart.sh
aliasgerovs's picture
Added venv.
8da6e34
raw
history blame
442 Bytes
#!/bin/bash
# Navigate to your app's directory
cd /home/aliasgarov/copyright_checker
# Pull the latest changes from the main branch
git pull origin main
# Kill the running Gradio
sudo pkill -f "app.py"
# Activate your Python environment if necessary
source /home/aliasgarov/copyright_checker/copy_check/bin/activate
# Start your Gradio app (adjust the command as needed)
nohup sudo python3 /home/aliasgarov/copyright_checker/app.py &