我正在尝试在Heroku上部署项目。
这是我的Procfile的内容,并且:
web: gunicorn --pythonpath meraki meraki.wsgi
当我foreman start
时,我收到此错误:
10:37:44 web.1 | started with pid 10205
10:37:44 worker.1 | started with pid 10207
10:37:44 web.1 | [2015-05-25 10:37:44 +0000] [10205] [INFO] Starting gunicorn 19.3.0
10:37:44 web.1 | [2015-05-25 10:37:44 +0000] [10205] [INFO] Listening at: http://0.0.0.0:5000 (10205)
10:37:44 web.1 | [2015-05-25 10:37:44 +0000] [10205] [INFO] Using worker: sync
10:37:44 web.1 | [2015-05-25 10:37:44 +0000] [10218] [INFO] Booting worker with pid: 10218
10:37:44 web.1 | [2015-05-25 10:37:44 +0000] [10218] [ERROR] Exception in worker process:
10:37:44 web.1 | Traceback (most recent call last):
10:37:44 web.1 | File "/home/maverick/.virtualenvs/meraki/local/lib/python2.7/site-packages/gunicorn/arbiter.py", line 507, in spawn_worker
10:37:44 web.1 | worker.init_process()
10:37:44 web.1 | File "/home/maverick/.virtualenvs/meraki/local/lib/python2.7/site-packages/gunicorn/workers/base.py", line 118, in init_process
10:37:44 web.1 | self.wsgi = self.app.wsgi()
10:37:44 web.1 | File "/home/maverick/.virtualenvs/meraki/local/lib/python2.7/site-packages/gunicorn/app/base.py", line 67, in wsgi
10:37:44 web.1 | self.callable = self.load()
10:37:44 web.1 | File "/home/maverick/.virtualenvs/meraki/local/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py", line 65, in load
10:37:44 web.1 | return self.load_wsgiapp()
10:37:44 web.1 | File "/home/maverick/.virtualenvs/meraki/local/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py", line 52, in load_wsgiapp
10:37:44 web.1 | return util.import_app(self.app_uri)
10:37:44 web.1 | File "/home/maverick/.virtualenvs/meraki/local/lib/python2.7/site-packages/gunicorn/util.py", line 355, in import_app
10:37:44 web.1 | __import__(module)
10:37:44 web.1 | ImportError: No module named wsgi
10:37:44 web.1 | Traceback (most recent call last):
10:37:44 web.1 | File "/home/maverick/.virtualenvs/meraki/local/lib/python2.7/site-packages/gunicorn/arbiter.py", line 507, in spawn_worker
10:37:44 web.1 | worker.init_process()
10:37:44 web.1 | File "/home/maverick/.virtualenvs/meraki/local/lib/python2.7/site-packages/gunicorn/workers/base.py", line 118, in init_process
10:37:44 web.1 | self.wsgi = self.app.wsgi()
10:37:44 web.1 | File "/home/maverick/.virtualenvs/meraki/local/lib/python2.7/site-packages/gunicorn/app/base.py", line 67, in wsgi
10:37:44 web.1 | self.callable = self.load()
10:37:44 web.1 | File "/home/maverick/.virtualenvs/meraki/local/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py", line 65, in load
10:37:44 web.1 | return self.load_wsgiapp()
10:37:44 web.1 | File "/home/maverick/.virtualenvs/meraki/local/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py", line 52, in load_wsgiapp
10:37:44 web.1 | return util.import_app(self.app_uri)
10:37:44 web.1 | File "/home/maverick/.virtualenvs/meraki/local/lib/python2.7/site-packages/gunicorn/util.py", line 355, in import_app
10:37:44 web.1 | __import__(module)
10:37:44 web.1 | ImportError: No module named wsgi
10:37:44 web.1 | [2015-05-25 10:37:44 +0000] [10218] [INFO] Worker exiting (pid: 10218)
10:37:44 web.1 | Traceback (most recent call last):
10:37:44 web.1 | File "/home/maverick/.virtualenvs/meraki/bin/gunicorn", line 11, in <module>
10:37:44 web.1 | sys.exit(run())
10:37:44 web.1 | File "/home/maverick/.virtualenvs/meraki/local/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py", line 74, in run
10:37:44 web.1 | WSGIApplication("%(prog)s [OPTIONS] [APP_MODULE]").run()
10:37:44 web.1 | File "/home/maverick/.virtualenvs/meraki/local/lib/python2.7/site-packages/gunicorn/app/base.py", line 189, in run
10:37:44 web.1 | super(Application, self).run()
10:37:44 web.1 | File "/home/maverick/.virtualenvs/meraki/local/lib/python2.7/site-packages/gunicorn/app/base.py", line 72, in run
10:37:44 web.1 | Arbiter(self).run()
10:37:44 web.1 | File "/home/maverick/.virtualenvs/meraki/local/lib/python2.7/site-packages/gunicorn/arbiter.py", line 174, in run
10:37:44 web.1 | self.manage_workers()
10:37:44 web.1 | File "/home/maverick/.virtualenvs/meraki/local/lib/python2.7/site-packages/gunicorn/arbiter.py", line 477, in manage_workers
10:37:44 web.1 | self.spawn_workers()
10:37:44 web.1 | File "/home/maverick/.virtualenvs/meraki/local/lib/python2.7/site-packages/gunicorn/arbiter.py", line 541, in spawn_workers
10:37:44 web.1 | time.sleep(0.1 * random.random())
10:37:44 web.1 | File "/home/maverick/.virtualenvs/meraki/local/lib/python2.7/site-packages/gunicorn/arbiter.py", line 214, in handle_chld
10:37:44 web.1 | self.reap_workers()
10:37:44 web.1 | File "/home/maverick/.virtualenvs/meraki/local/lib/python2.7/site-packages/gunicorn/arbiter.py", line 459, in reap_workers
10:37:44 web.1 | raise HaltServer(reason, self.WORKER_BOOT_ERROR)
10:37:44 web.1 | gunicorn.errors.HaltServer: <HaltServer 'Worker failed to boot.' 3>
10:37:44 web.1 | exited with code 1
10:37:44 system | sending SIGTERM to all processes
10:37:44 worker.1 | terminated by SIGTERM
同样的事情在昨天工作(我知道这是经典的:))
我该如何解决这个问题?