Skip to content

Commit c4320cd

Browse files
committed
chore(wsgi): add tornado 6 support
1 parent 8b701fd commit c4320cd

4 files changed

Lines changed: 15 additions & 2 deletions

File tree

rootfs/bin/boot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ python /app/manage.py migrate --noinput
3030
# spawn a gunicorn server in the background
3131
echo ""
3232
echo "Starting up Gunicorn"
33-
gunicorn -c /app/drycc/gunicorn/config.py api.wsgi &
33+
gunicorn -c /app/drycc/gunicorn/config.py drycc.gunicorn.wsgi &
3434

3535
echo ""
3636
echo "Loading database information to Kubernetes in the background"

rootfs/drycc/gunicorn/wsgi.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
from tornado.wsgi import WSGIContainer
2+
3+
4+
from api.wsgi import application as handler
5+
6+
7+
application = WSGIContainer(handler)

rootfs/drycc/wsgi.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
from tornado.wsgi import WSGIContainer
2+
3+
4+
from api.wsgi import application as handler
5+
6+
7+
application = WSGIContainer(handler)

rootfs/requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ morph==0.1.4
1515
ndg-httpsclient==0.5.1
1616
packaging==20.4
1717
pyasn1==0.4.8
18-
tornado==5.1.1
1918
pynsq==0.9.0
2019
psycopg2-binary==2.8.5
2120
pyldap==3.0.0.post1

0 commit comments

Comments
 (0)