Skip to content

Commit 6440f0b

Browse files
committed
use gunicorn on production
1 parent 0ec9596 commit 6440f0b

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

blocks/requirements.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
amqp==5.1.1
2-
asgiref==3.6.0
2+
asgiref==3.9.1
33
billiard==4.2.0
44
celery==5.4.0
55
certifi==2024.7.4
@@ -11,7 +11,7 @@ click-plugins==1.1.1
1111
click-repl==0.2.0
1212
cryptography==44.0.1
1313
defusedxml==0.7.1
14-
Django==4.2.22
14+
Django==5.2.5
1515
django-cors-headers==4.6.0
1616
django-filter==24.3
1717
djangorestframework==3.15.2
@@ -20,10 +20,12 @@ djoser==2.3.1
2020
flake8==7.1.1
2121
gevent==24.11.1
2222
greenlet==3.1.1
23+
gunicorn==23.0.0
2324
idna==3.7
2425
kombu==5.3.5
2526
mccabe==0.7.0
2627
oauthlib==3.2.2
28+
packaging==25.0
2729
pexpect==4.9.0
2830
pillow==10.3.0
2931
prompt-toolkit==3.0.36

blocks/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ fi
1818

1919
python manage.py migrate
2020
python manage.py loaddata saveAPI xcosblocks
21-
python manage.py runserver
21+
gunicorn blocks.wsgi:application -b 0.0.0.0:8000 -k gevent -w 4

0 commit comments

Comments
 (0)