Configuring Gunicorn: No application module specified

前端 未结 1 1066
隐瞒了意图╮
隐瞒了意图╮ 2021-01-05 06:49

I\'m trying to deploy a django project with NGINX and gunicorn. I keep getting 502 Bad Gateway. I\'ve been working nonstop on this for the past few days and I can\'t seem to

相关标签:
1条回答
  • 2021-01-05 06:52

    Assuming you have nginx proxying to port 8001, you want to do this:

    gunicorn -b 127.0.0.1:8001 your_project_name.wsgi:application

    You need to run that from your project folder (where the manage.py file is)

    0 讨论(0)
提交回复
热议问题