Severian commited on
Commit
a7917aa
·
verified ·
1 Parent(s): b9bc222

Update entrypoint.sh

Browse files
Files changed (1) hide show
  1. entrypoint.sh +3 -3
entrypoint.sh CHANGED
@@ -48,13 +48,13 @@ set -e\n\
48
  \n\
49
  if [[ "${MIGRATION_ENABLED}" == "true" ]]; then\n\
50
  echo "Running migrations"\n\
51
- cd /app/api && PYTHONPATH=/app/api flask db upgrade\n\
52
  fi\n\
53
  \n\
54
  if [[ "${DEBUG}" == "true" ]]; then\n\
55
- exec flask run --host=${DIFY_BIND_ADDRESS:-0.0.0.0} --port=7860 --debug\n\
56
  else\n\
57
- exec gunicorn \\\n\
58
  --bind "0.0.0.0:7860" \\\n\
59
  --workers ${SERVER_WORKER_AMOUNT:-1} \\\n\
60
  --worker-class ${SERVER_WORKER_CLASS:-gevent} \\\n\
 
48
  \n\
49
  if [[ "${MIGRATION_ENABLED}" == "true" ]]; then\n\
50
  echo "Running migrations"\n\
51
+ cd /app/api && poetry run flask db upgrade\n\
52
  fi\n\
53
  \n\
54
  if [[ "${DEBUG}" == "true" ]]; then\n\
55
+ exec poetry run flask run --host=${DIFY_BIND_ADDRESS:-0.0.0.0} --port=7860 --debug\n\
56
  else\n\
57
+ exec poetry run gunicorn \\\n\
58
  --bind "0.0.0.0:7860" \\\n\
59
  --workers ${SERVER_WORKER_AMOUNT:-1} \\\n\
60
  --worker-class ${SERVER_WORKER_CLASS:-gevent} \\\n\