rename the mail api file and entrypoint

This commit is contained in:
deflax 2025-02-06 16:41:44 +00:00
parent 1a849d6b0e
commit 0584637b0b
3 changed files with 2 additions and 4 deletions

View file

@ -3,7 +3,7 @@
set -e set -e
if [ -f /app/app.py ]; then if [ -f /app/app.py ]; then
DEFAULT_MODULE_NAME=api DEFAULT_MODULE_NAME=flask_api
fi fi
MODULE_NAME=${MODULE_NAME:-$DEFAULT_MODULE_NAME} MODULE_NAME=${MODULE_NAME:-$DEFAULT_MODULE_NAME}
VARIABLE_NAME=${VARIABLE_NAME:-api} VARIABLE_NAME=${VARIABLE_NAME:-api}

View file

@ -4,12 +4,10 @@ set -e
# If there's a prestart.sh script in the /app directory, run it before starting # If there's a prestart.sh script in the /app directory, run it before starting
PRE_START_PATH=/app/prestart.sh PRE_START_PATH=/app/prestart.sh
echo "Checking for script in $PRE_START_PATH"
if [ -f $PRE_START_PATH ] ; then if [ -f $PRE_START_PATH ] ; then
echo "Running script $PRE_START_PATH"
. "$PRE_START_PATH" . "$PRE_START_PATH"
else else
echo "There is no script $PRE_START_PATH" echo "There is no prescript $PRE_START_PATH"
fi fi
#waitress-serve --trusted-proxy='*' \ #waitress-serve --trusted-proxy='*' \