문제

I am having trouble with getting foreman to work.

When I run foreman start, I get the following output:

13:48:12 web.1  | started with pid 14896
13:48:12 web.1  | Traceback (most recent call last):
13:48:12 web.1  |   File "C:\Python33\Scripts\gunicorn-script.py", line 9, in <module>
13:48:12 web.1  |     load_entry_point('gunicorn==18.0', 'console_scripts', 'gunicorn')()
13:48:12 web.1  |   File "C:\Python33\lib\site-packages\pkg_resources.py", line 357, in load_entry_point
13:48:12 web.1  |     return get_distribution(dist).load_entry_point(group, name)
13:48:12 web.1  |   File "C:\Python33\lib\site-packages\pkg_resources.py", line 2394, in load_entry_point
13:48:12 web.1  |     return ep.load()
13:48:12 web.1  |   File "C:\Python33\lib\site-packages\pkg_resources.py", line 2108, in load
13:48:12 web.1  | exited with code 1
13:48:12 web.1  |     entry = __import__(self.module_name, globals(),globals(), ['__name__'])
13:48:12 system | sending SIGKILL to all processes
13:48:12        |   File "C:\Python33\lib\site-packages\gunicorn\app\wsgiapp.py", line 10, in <module>

Frankly, I don't have a clue what is causing this. Help would be much appreciated.

My Procfile is as follows:

web: gunicorn caraton.wsgi 
도움이 되었습니까?

해결책

A bit late here so I expect you've worked this out for yourself, but as you appear to be in a Windows environment, gunicorn does not currently run on Windows. This is referenced here on stackoverflow.

Windows support is apparently planned as described here.

I ran into the same problem myself.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top