Add uwsgi fixes #172
This commit is contained in:
Родитель
2e2cc6b096
Коммит
4f407d1716
3
Makefile
3
Makefile
|
@ -10,6 +10,9 @@ compose_build: build
|
|||
up: compose_build
|
||||
docker-compose up
|
||||
|
||||
uwsgi: compose_build
|
||||
docker-compose run app sh -c "/app/bin/wait-for-it.sh db:5432 -- uwsgi --ini uwsgi.ini"
|
||||
|
||||
test: compose_build
|
||||
docker-compose run app sh -c "/app/bin/wait-for-it.sh db:5432 -- coverage run manage.py test;coverage report -m --fail-under=100"
|
||||
|
||||
|
|
|
@ -10,3 +10,4 @@ mock==2.0.0
|
|||
psycopg2==2.6.2
|
||||
python-decouple==3.0
|
||||
raven==6.0.0
|
||||
uWSGI==2.0.15
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
[uwsgi]
|
||||
chdir=/app/
|
||||
http=0.0.0.0:7001
|
||||
module=experimenter.wsgi:application
|
||||
master=True
|
||||
pidfile=/tmp/project-master.pid
|
||||
vacuum=True
|
||||
max-requests=5000
|
Загрузка…
Ссылка в новой задаче