Use the old waitress command
This commit is contained in:
parent
aff74f3f76
commit
9b923e277e
2 changed files with 7 additions and 5 deletions
|
@ -3,7 +3,7 @@
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
if [ -f /app/api.py ]; then
|
if [ -f /app/api.py ]; then
|
||||||
DEFAULT_MODULE_NAME=api
|
DEFAULT_MODULE_NAME=app.api
|
||||||
fi
|
fi
|
||||||
MODULE_NAME=${MODULE_NAME:-$DEFAULT_MODULE_NAME}
|
MODULE_NAME=${MODULE_NAME:-$DEFAULT_MODULE_NAME}
|
||||||
VARIABLE_NAME=${VARIABLE_NAME:-create_app}
|
VARIABLE_NAME=${VARIABLE_NAME:-create_app}
|
||||||
|
|
|
@ -11,7 +11,9 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Start Waitress
|
# Start Waitress
|
||||||
#echo "waitress-serve $APP_MODULE"
|
echo "waitress-serve $APP_MODULE"
|
||||||
exec waitress-serve --listen=*:8080 --trusted-proxy='*' \
|
# exec waitress-serve --listen=*:8080 --trusted-proxy='*' \
|
||||||
#--trusted-proxy-headers="x-forwarded-for","x-forwarded-host","x-forwarded-proto","x-forwarded-port" \
|
# --trusted-proxy-headers="x-forwarded-for","x-forwarded-host","x-forwarded-proto","x-forwarded-port" \
|
||||||
--log-untrusted-proxy-headers --threads=16 --call app.api:create_app
|
# --log-untrusted-proxy-headers --threads=16 --call app.api:create_app
|
||||||
|
|
||||||
|
waitress-serve --port=8080" --threads=16 --call $APP_MODULE"
|
Loading…
Add table
Reference in a new issue