1d1b8a7bf9
Change-Id: Icd19235e3be8855c2337a752d9e42fcfaada2a33
18 lines
339 B
Bash
Executable File
18 lines
339 B
Bash
Executable File
#!/bin/bash
|
|
set -ex
|
|
|
|
PORT=${PORT:-9000}
|
|
UWSGI_TIMEOUT=${UWSGI_TIMEOUT:-300}
|
|
|
|
if [ "$1" = 'server' ]; then
|
|
exec uwsgi \
|
|
--http :${PORT} \
|
|
--http-timeout ${UWSGI_TIMEOUT} \
|
|
-z ${UWSGI_TIMEOUT} \
|
|
--paste config:/etc/promenade/api-paste.ini \
|
|
--enable-threads -L \
|
|
--workers 4
|
|
fi
|
|
|
|
exec ${@}
|