【发布时间】:2014-02-18 06:06:36
【问题描述】:
我正在学习Getting Started with Python on Heroku 教程,我一直到Declare process types with Procfile。
但在运行“工头启动”后,它会说:
C:\Users\preatik\helloflask>foreman start
17:09:08 web.1 | started with pid 292
17:09:08 web.1 | Traceback (most recent call last):
17:09:08 web.1 | File "C:\Python33\lib\runpy.py", line 160, in _run_module_as_main
17:09:09 web.1 | "__main__", fname, loader, pkg_name)
17:09:09 web.1 | File "C:\Python33\lib\runpy.py", line 73, in _run_code
17:09:09 web.1 | exec(code, run_globals)
17:09:09 web.1 | exited with code 1
17:09:09 system | sending SIGKILL to all processes
17:09:09 | File "C:\Python33\Scripts\gunicorn.exe\__main__.py", line 5, in <module
我也跑了以下:
C:\Users\preatik\helloflask>foreman check
valid procfile detected (web)
任何想法有什么问题吗?我正在使用 Windows 7。任何与操作系统相关的问题?
【问题讨论】:
-
Procfile 应该是这样的: web: gunicorn runp-heroku:app 尝试重新启动...另外,工头显然遇到了 windows 问题:discussion.heroku.com/t/…
-
感谢您的评论。尝试更改 procfile。没有帮助。
标签: python ruby-on-rails heroku gunicorn foreman