Skip to content

Commit

Permalink
build: update ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
leon-rdo committed Aug 15, 2024
1 parent 6b09467 commit 62f49f1
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,16 @@ jobs:
DEPLOY_USER: ${{ secrets.DEPLOY_USER }}
DEPLOY_PATH: ${{ secrets.DEPLOY_PATH }}
run: |
ssh -i ~/.ssh/id_rsa $DEPLOY_USER@$DEPLOY_SERVER '
cd $DEPLOY_PATH &&
pwd && # Verificar se estamos no diretório correto
ls -la && # Listar conteúdo do diretório
git pull &&
source env/bin/activate &&
pip install -r requirements.txt &&
python manage.py migrate &&
python manage.py collectstatic --noinput &&
pkill -f "gunicorn" || true &&
ssh -i ~/.ssh/id_rsa $DEPLOY_USER@$DEPLOY_SERVER << EOF
cd $DEPLOY_PATH
pwd
ls -la
git pull
source env/bin/activate
pip install -r requirements.txt
python manage.py migrate
python manage.py collectstatic --noinput
pkill -f "gunicorn" || true
gunicorn -c ./configs/gunicorn.py LeonardoCosta.wsgi &
'
EOF

0 comments on commit 62f49f1

Please sign in to comment.