4
Gunicorn을 사용하여 aiohttp 기반 서버를 실행하려고합니다.gunicorn을 사용하여 aiohttp 서버 실행
Failed to find application: 'aiohttpdemo_polls'
을하지만 아래와 같은 파이썬 -m을 사용하여 실행하고 때 :
gunicorn aiohttpdemo_polls:app --bind 127.0.0.1:8080
그것은 반환 : 그것은 잘 작동
python -m aiohttpdemo_polls
여기
는 명령입니다. 코드는 aiohttp repo의 데모 앱인 here에서 찾을 수 있습니다. 또한 아래와 같이 그것을 시도 :gunicorn aiohttpdemo_polls.main:app --bind 127.0.0.1:8080
그러나 그 또한 서버를 실행하지. 그것은
Failed to find application: 'aiohttpdemo_polls.main'
문제를 해결하기위한 더 찾기 위해 어떤 생각을 반환?