Skip to content

Commit

Permalink
updated deployment script
Browse files Browse the repository at this point in the history
  • Loading branch information
gopibabus committed Oct 24, 2023
1 parent a905da0 commit c00bcfb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .scripts/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ PIP_PATH=/usr/bin/pip
echo "Deployment started ..."

# Enter maintenance mode or return true if already in maintenance mode
kill -SIGINT $(ps aux | grep uvicorn | grep -v grep | awk '{print $2}') || true
pkill -INT -f uvicorn || true

# Pull the latest version of the app
git fetch origin master
git reset --hard origin/master
git pull origin master

# Exit maintenance mode
$PYTHON_PATH $PIP_PATH -m uvicorn main:app --host 0.0.0.0 --port 8000
$PYTHON_PATH -m uvicorn main:app --host 0.0.0.0 --port 8000 &

echo "Deployment finished!"

0 comments on commit c00bcfb

Please sign in to comment.