Heroku本地环境无法工作?

3

我正在尝试使用 heroku local 在本地部署我的Python应用程序,但是我不断收到以下输出:

(env) iMac:myproject Me$  heroku local
[WARN] No ENV file found
[OKAY] Trimming display Output to 61 Columns
12:15:08 AM web.1 |  [2016-04-05 00:15:08 -0700] [47311] [INFO] Starting gunicorn …
12:15:08 AM web.1 |  [2016-04-05 00:15:08 -0700] [47311] [ERROR] Connection in use12:15:08 AM web.1 |  [2016-04-05 00:15:08 -0700] [47311] [ERROR] Retrying in 1 sec…
12:15:09 AM web.1 |  [2016-04-05 00:15:09 -0700] [47311] [ERROR] Connection in use12:15:09 AM web.1 |  [2016-04-05 00:15:09 -0700] [47311] [ERROR] Retrying in 1 sec…
12:15:10 AM web.1 |  [2016-04-05 00:15:10 -0700] [47311] [ERROR] Connection in use12:15:10 AM web.1 |  [2016-04-05 00:15:10 -0700] [47311] [ERROR] Retrying in 1 sec…
12:15:11 AM web.1 |  [2016-04-05 00:15:11 -0700] [47311] [ERROR] Connection in use12:15:11 AM web.1 |  [2016-04-05 00:15:11 -0700] [47311] [ERROR] Retrying in 1 sec…
12:15:12 AM web.1 |  [2016-04-05 00:15:12 -0700] [47311] [ERROR] Connection in use12:15:12 AM web.1 |  [2016-04-05 00:15:12 -0700] [47311] [ERROR] Retrying in 1 sec…
12:15:13 AM web.1 |  [2016-04-05 00:15:13 -0700] [47311] [ERROR] Can't connect to …
[DONE] Killing all processes with signal  null
12:15:13 AM web.1 Exited Abnormally
(env) iMac:myproject Me$ 

env文件夹在应用程序中。

enter image description here

2个回答

3

问题不在于环境文件(FILE)本身。

正如您看到的:
[WARN] 未找到ENV文件
这只是一个警告。

我不确定这里出了什么问题。日志有没有显示任何信息?

尝试这样做(每次我都必须像这样运行本地服务器):

heroku local web -f Procfile

1

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接