получается. В логах EC2 инстанса:
Nov 4 22:04:43 ip-172-31-39-63 web: File "/var/app/venv/staging-LQM1lest/lib/python3.8/site-packages/gunicorn/arbiter.py", line 589, in spawn_worker
Nov 4 22:04:43 ip-172-31-39-63 web: worker.init_process()
Nov 4 22:04:43 ip-172-31-39-63 web: File "/var/app/venv/staging-LQM1lest/lib/python3.8/site-packages/gunicorn/workers/gthread.py", line 92, in init_process
Nov 4 22:04:43 ip-172-31-39-63 web: super().init_process()
Nov 4 22:04:43 ip-172-31-39-63 web: File "/var/app/venv/staging-LQM1lest/lib/python3.8/site-packages/gunicorn/workers/base.py", line 134, in init_process
Nov 4 22:04:43 ip-172-31-39-63 web: self.load_wsgi()
Nov 4 22:04:43 ip-172-31-39-63 web: File "/var/app/venv/staging-LQM1lest/lib/python3.8/site-packages/gunicorn/workers/base.py", line 146, in load_wsgi
Nov 4 22:04:43 ip-172-31-39-63 web: self.wsgi = self.app.wsgi()
Nov 4 22:04:43 ip-172-31-39-63 web: File "/var/app/venv/staging-LQM1lest/lib/python3.8/site-packages/gunicorn/app/base.py", line 67, in wsgi
Nov 4 22:04:43 ip-172-31-39-63 web: self.callable = self.load()
Nov 4 22:04:43 ip-172-31-39-63 web: File "/var/app/venv/staging-LQM1lest/lib/python3.8/site-packages/gunicorn/app/wsgiapp.py", line 58, in load
Nov 4 22:04:43 ip-172-31-39-63 web: return self.load_wsgiapp()
Nov 4 22:04:43 ip-172-31-39-63 web: File "/var/app/venv/staging-LQM1lest/lib/python3.8/site-packages/gunicorn/app/wsgiapp.py", line 48, in load_wsgiapp
Nov 4 22:04:43 ip-172-31-39-63 web: return util.import_app(self.app_uri)
Nov 4 22:04:43 ip-172-31-39-63 web: File "/var/app/venv/staging-LQM1lest/lib/python3.8/site-packages/gunicorn/util.py", line 363, in import_app
Nov 4 22:04:43 ip-172-31-39-63 web: raise ImportError(msg % (module.rsplit(".", 1)[0], obj))
Nov 4 22:04:43 ip-172-31-39-63 web: ImportError: Failed to find application, did you mean 'flowers_ecommerce/wsgi:application'?
Nov 4 22:04:43 ip-172-31-39-63 web: [2021-11-04 22:04:43 +0000] [3619] [INFO] Worker exiting (pid: 3619)
Nov 4 22:04:43 ip-172-31-39-63 web: [2021-11-04 22:04:43 +0000] [3613] [INFO] Shutting down: Master
Nov 4 22:04:43 ip-172-31-39-63 web: [2021-11-04 22:04:43 +0000] [3613] [INFO] Reason: Worker failed to boot.
Может кто-то помочь с данной ошибкой? Почему gunicorn не находит wsgi
Обсуждают сегодня