Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wac81 opened this issue May 27, 2024 · 1 comment
Open

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

wac81 opened this issue May 27, 2024 · 1 comment

Comments

@wac81
Copy link

wac81 commented May 27, 2024

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
Copy link
Author

wac81 commented May 27, 2024

what did i missed ??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant