Skip to content

Commit

Permalink
fix: fix entrypoint.sh
Browse files Browse the repository at this point in the history
Signed-off-by: liangjunhao <[email protected]>
  • Loading branch information
paterleng committed Jul 26, 2024
1 parent b0edffd commit 02d0ac3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ if [ "$1" = "debug" -o "$1" = "bash" ]; then
exec /bin/bash
elif [ "$1" = "version" ]; then
echo "${RELEASE_DESC}"
else
elif [ "$1" = "init" ]; then
if ! (init_database); then
exit 1
fi
Expand All @@ -79,5 +79,10 @@ else
fi
fi
# python upgrade.py
else
if ! (init_database); then
exit 1
fi
# python upgrade.py
exec gunicorn goodrain_web.wsgi -b 0.0.0.0:${PORT:-7070} --max-requests=5000 -k gevent --reload --workers=2 --timeout=75 --log-file - --access-logfile - --error-logfile -
fi

0 comments on commit 02d0ac3

Please sign in to comment.