зеркало из https://github.com/mozilla/bedrock.git
Use sync gunicorn worker class for smoke tests
Meinheld (the default) is causing problems at tests startup, but works better when deployed.
This commit is contained in:
Родитель
c66e505495
Коммит
4545530a27
|
@ -1,2 +1,7 @@
|
|||
#!/bin/bash -xe
|
||||
gunicorn wsgi.app:application -b 0.0.0.0:${PORT:-8000} -w ${WEB_CONCURRENCY:-2} --error-logfile - --access-logfile - --log-level ${LOGLEVEL:-info} --worker-class ${GUNICORN_WORKER_CLASS:-meinheld.gmeinheld.MeinheldWorker}
|
||||
gunicorn wsgi.app:application -b 0.0.0.0:${PORT:-8000} \
|
||||
-w ${WEB_CONCURRENCY:-2} \
|
||||
--error-logfile - \
|
||||
--access-logfile - \
|
||||
--log-level ${LOGLEVEL:-info} \
|
||||
--worker-class ${GUNICORN_WORKER_CLASS:-meinheld.gmeinheld.MeinheldWorker}
|
||||
|
|
|
@ -59,6 +59,7 @@ if [ -z "${BASE_URL}" ]; then
|
|||
-e SECRET_KEY=foo \
|
||||
-e DEBUG=False \
|
||||
-e DATABASE_URL=sqlite:////tmp/temp.db \
|
||||
-e GUNICORN_WORKER_CLASS=sync \
|
||||
mozorg/bedrock_code:${GIT_COMMIT}
|
||||
|
||||
DOCKER_LINKS=(--link bedrock-code-${GIT_COMMIT_SHORT}:bedrock)
|
||||
|
|
Загрузка…
Ссылка в новой задаче