Test: extend uwsgi timeout to facilitate testing
Change-Id: Icd19235e3be8855c2337a752d9e42fcfaada2a33
This commit is contained in:
parent
6a58ef5bfe
commit
1d1b8a7bf9
|
@ -2,11 +2,13 @@
|
||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
PORT=${PORT:-9000}
|
PORT=${PORT:-9000}
|
||||||
|
UWSGI_TIMEOUT=${UWSGI_TIMEOUT:-300}
|
||||||
|
|
||||||
if [ "$1" = 'server' ]; then
|
if [ "$1" = 'server' ]; then
|
||||||
exec uwsgi \
|
exec uwsgi \
|
||||||
--http :${PORT} \
|
--http :${PORT} \
|
||||||
-z 300 \
|
--http-timeout ${UWSGI_TIMEOUT} \
|
||||||
|
-z ${UWSGI_TIMEOUT} \
|
||||||
--paste config:/etc/promenade/api-paste.ini \
|
--paste config:/etc/promenade/api-paste.ini \
|
||||||
--enable-threads -L \
|
--enable-threads -L \
|
||||||
--workers 4
|
--workers 4
|
||||||
|
|
Loading…
Reference in New Issue