我的flask应用程序读取本地存储的excel文件,它在本地机器上运行良好。
当我在heroku上部署相同的应用程序时,它抛出异常-
FileNotFoundError: [Errno 2] No such file or directory: 'C:/QuestionBank_v5.xlsx'
这是有效的,因为heroku部署不能从我的本地计算机读取。
有没有办法将这个文件与flask应用程序文件一起存储,并在部署到heroku上时使其可读?
我正在尝试遵循Michael Hartl的rails教程添加身份验证步骤7.29 ()。我的项目可以在本地运行,但当我尝试部署到heroku时,我收到“应用程序中出现错误,无法为您的页面提供服务”。以下是我的日志错误:
heroku[api]: Starting process with command `bundle exec rake db:migrate` by connorleech@gmail.com
heroku[run.1285]: Awaiting client
heroku[run.1285]: Starting process with com
我正在将我的Sinatra应用程序部署到Heroku,当我到达heroku logs时,我看到了以下跟踪:
State changed from crashed to starting
configuration /app/config.ru not found
State changed from starting to crashed
at=error code=H10 desc="App crashed" method=GET path=/ host=... request_id=... status=503 bytes=
...heroku[router]: at=e
我正在将一个应用程序部署到Heroku托管的node.js mongodb-Atlas应用程序,在部署它之后,它开始崩溃。以下是该事件的日志:
2019-11-07T14:03:44.54763+00:00 app[web.1]:
2019-11-07T14:03:44.547905+00:00 app[web.1]: npm ERR! A complete log of this run can be found in:
2019-11-07T14:03:44.548078+00:00 app[web.1]: npm ERR! /app/.npm/_logs/2019-11-07T