2016-04-05 84 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