From a45f6d3803552dbcf3afa5447d94558dc876bcec Mon Sep 17 00:00:00 2001 From: Arthur <18040415+alouradou@users.noreply.github.com> Date: Sun, 18 Feb 2024 00:10:48 +0100 Subject: [PATCH] Updated Action --- .github/workflows/auto-deploy.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/auto-deploy.yml b/.github/workflows/auto-deploy.yml index 03af54e..91d1534 100644 --- a/.github/workflows/auto-deploy.yml +++ b/.github/workflows/auto-deploy.yml @@ -17,7 +17,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v2 with: - python-version: 3.8 + python-version: 3.9 - name: Install dependencies run: | @@ -44,11 +44,14 @@ jobs: port: ${{ secrets.SERVER_PORT }} script: | cd serenadoit + python -m venv serenadoit . + source serenadoit/bin/activate + pip install -r requirements.txt + pip install gunicorn git stash git pull origin master git stash pop source serenadoit/bin/activate - pip install gunicorn rm -rf ~/node/static/styles/ ~/node/static/scripts/ ~/node/static/images/ cp -r ./static ~/node/ gunicorn -w 4 -b 0.0.0.0:10410 run_prod:app --error-logfile logs/error.log --access-logfile logs/access.log -D