python - Configuring Gunicorn: No application module specified -
python - Configuring Gunicorn: No application module specified -
i'm trying deploy django project nginx , gunicorn. maintain getting 502 bad gateway. i've been working nonstop on past few days , can't seem deployed. i've gone through 3 tutorials on digital ocean, aren't correct, obviously.
i maintain getting 502 bad gateway, or if seek utilize manage.py runserver, 400 bad request.
i think problem gunicorn. when come in gunicorn -config, says
usage: gunicorn [options] [app_module] gunicorn: error: no application module specified.
every bit of documentation can find says type gunicorn wsgi:application, when do, says "workers failed boot." how set application module?
assuming have nginx proxying port 8001, want this:
gunicorn -b 127.0.0.1:8001 your_project_name.wsgi:application
you need run project folder (where manage.py file is)
python django nginx gunicorn digital-ocean
Comments
Post a Comment