Skip to content

Commit 2a5b193

Browse files
authored
Update main.yml
1 parent 442c5b8 commit 2a5b193

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/main.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,13 @@ jobs:
2424
with:
2525
ARGS: "--delete"
2626
SCRIPT_AFTER: |
27-
ssh -o StrictHostKeyChecking=no ${REMOTE_USER}@${REMOTE_HOST} << 'EOF'
2827
cd /home/django/50v-backend
2928
python -m venv .venv
3029
source .venv/bin/activate
30+
pip install --upgrade pip
3131
pip install -r requirements.txt
32+
chown -R django:django
33+
/home/django/50v-backend
3234
python manage.py migrate
33-
sudo systemctl restart gunicorn
34-
EOF
35+
systemctl restart gunicorn
36+

0 commit comments

Comments
 (0)