Skip to content

Commit 5edfa67

Browse files
authored
add commands
1 parent 0478d42 commit 5edfa67

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/django.yml

+9-1
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,12 @@ jobs:
3030
END
3131
- name: Deploy to Server
3232
run: |
33-
ssh production 'cd /home/django/bakeup/'
33+
ssh production '
34+
cd /home/django/bakeup/ &&
35+
git pull origin main &&
36+
source /home/django/djangoenv/bin/activate &&
37+
pip install -r requirements/production.txt &&
38+
python manage.py migrate &&
39+
python collectstatic --noinput &&
40+
supervisorctl restart django
41+
'

0 commit comments

Comments
 (0)