Skip to content
This repository has been archived by the owner on Jun 24, 2024. It is now read-only.

Commit

Permalink
Chore: git action add pip install dependent and apt update
Browse files Browse the repository at this point in the history
-
  • Loading branch information
tomorrow9913 committed Nov 17, 2023
1 parent c0e144c commit 35864d9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,21 @@ jobs:

script: |
echo "#START"
sudo apt update && sudo apt-get -y upgrade
cd /root/REST_API_Server
echo "############# GIT PULL #############"
pass=$(sudo git pull origin master)
echo $pass
if [ -n "$pass" ]; then
echo "############# Install dependent #############"
pip install -r requirements.txt
echo "############# Server Stop #############"
sudo pkill uvicorn
echo "############# Server Start #############"
sudo python3 -m uvicorn main:app
else
echo "############## git pull: Error ##############"
exit 1;
Expand Down

0 comments on commit 35864d9

Please sign in to comment.