2016-04-05 86 views
2

我试图部署在本地使用heroku local我的Python应用程序,但我不断收到以下输出:Heroku Local Not Working?

(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 use… 
12: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 use… 
12: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 use… 
12: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 use… 
12: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 use… 
12: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

回答

1

查找更多信息它不是问题的环境FILE。

正如你可以看到:
[WARN] No ENV file found
这是因为警告。

我不知道这里有什么问题。日志会说什么吗?

试试这个,但(我必须每次运行我的本地服务器是这样):

heroku local web -f Procfile