rename the mail api file and entrypoint
This commit is contained in:
parent
1a849d6b0e
commit
0584637b0b
3 changed files with 2 additions and 4 deletions
|
@ -3,7 +3,7 @@
|
|||
set -e
|
||||
|
||||
if [ -f /app/app.py ]; then
|
||||
DEFAULT_MODULE_NAME=api
|
||||
DEFAULT_MODULE_NAME=flask_api
|
||||
fi
|
||||
MODULE_NAME=${MODULE_NAME:-$DEFAULT_MODULE_NAME}
|
||||
VARIABLE_NAME=${VARIABLE_NAME:-api}
|
||||
|
|
|
@ -4,12 +4,10 @@ set -e
|
|||
|
||||
# If there's a prestart.sh script in the /app directory, run it before starting
|
||||
PRE_START_PATH=/app/prestart.sh
|
||||
echo "Checking for script in $PRE_START_PATH"
|
||||
if [ -f $PRE_START_PATH ] ; then
|
||||
echo "Running script $PRE_START_PATH"
|
||||
. "$PRE_START_PATH"
|
||||
else
|
||||
echo "There is no script $PRE_START_PATH"
|
||||
echo "There is no prescript $PRE_START_PATH"
|
||||
fi
|
||||
|
||||
#waitress-serve --trusted-proxy='*' \
|
||||
|
|
Loading…
Add table
Reference in a new issue