WongSaang / chatgpt-ui

A ChatGPT web client that supports multiple users, multiple languages, and multiple database connections for persistent data storage. Provides Docker images and quick deployment scripts.
https://wongsaang.github.io/chatgpt-ui/
MIT License
1.45k stars 321 forks source link

use gunicorn,can't get data from settings.py #269

Open wac81 opened 2 months ago

wac81 commented 2 months ago

set up: ACCOUNT_EMAIL_VERIFICATION=mandatory

使用entrypoint.sh启动(gunicorn )

python manage.py migrate

python manage.py createsuperuser --no-input

export WORKERS=${SERVER_WORKERS:-3}

export TIMEOUT=${WORKER_TIMEOUT:-180}

exec gunicorn chatgpt_ui_server.wsgi --workers=$WORKERS --timeout $TIMEOUT --bind 0.0.0.0:8000 --access-logfile -

print: EMAIL_VERIFICATION: optional

if use python3 manger.py runserver to run, then EMAIL_VERIFICATION: mandatory

wac81 commented 2 months ago

what did i missed ??