在heroku上部署python应用程序时出现应用程序错误

时间:2017-07-27 12:16:04

标签: python heroku heroku-cli

我正在尝试在heroku上部署python应用程序。我添加了所有必需的文件并设置了heroku帐户,应用程序和CLI。我成功地部署了,但是当我打开heroku时它会抛出:

  

应用程序错误

这是代码: 的 Procfile

web: mkdocs serve -p $PORT
  

requirements.txt已包含在内我需要python 3.6运行时,默认情况下是heroku

     

Heroku Log

2017-07-27T11:59:52.000000+00:00 app[api]: Build started by user ****@gmail.com
2017-07-27T12:00:15.460250+00:00 app[api]: Release v4 created by user ****@gmail.com
2017-07-27T12:00:15.460250+00:00 app[api]: Deploy cb502cee by user ****@gmail.com
2017-07-27T11:59:52.000000+00:00 app[api]: Build succeeded
2017-07-27T12:00:17.062391+00:00 heroku[web.1]: State changed from crashed to starting
2017-07-27T12:00:21.976370+00:00 heroku[web.1]: Starting process with command   `mkdocs serve -p 38956`
2017-07-27T12:00:25.708694+00:00 app[web.1]: Error: no such option: -p
2017-07-27T12:00:25.873462+00:00 heroku[web.1]: State changed from starting to   crashed
2017-07-27T12:00:25.860554+00:00 heroku[web.1]: Process exited with status 2
2017-07-27T12:00:33.602169+00:00 heroku[router]: at=error code=H10 desc="App  crashed" method=GET path="/" host=fathomless-sierra-78358.herokuapp.com  request_id=e1624a13-39dd-41b9-a9bd-d291cea89c35 fwd="182.187.14.197" dyno=  connect= service= status=503 bytes= protocol=https

0 个答案:

没有答案
相关问题