应用程序错误和日志未加载,应采取什么步骤?
Application error and logs not loading, what steps to take?
我在访问我的应用程序时收到以下错误页面:
Application error
An error occurred in the application and your page could not be served. If you are the application owner, check your logs for details. You can do this from the Heroku CLI with the command
heroku logs --tail
然而,heroku logs --tail
没有 return 任何东西。如果我通过网络 (https://dashboard.heroku.com/apps/app-name/logs) 转到仪表板,日志 window 会继续加载,但没有显示任何内容。
我无事可做,Heroku 不接受免费应用的票。有谁知道我可以采取更多步骤来跟踪错误?
附加信息:
构建日志看起来都很好:
BUILD SUCCESSFUL in 49s
5 actionable tasks: 5 executed
Discovering process types
Procfile declares types -> (none)
Default types for buildpack -> web
Compressing...
Done: 85.2M
Launching...
Released v3
https://app-name.herokuapp.com/ deployed to Heroku
我正在创建一个 spring Java API,当我尝试在本地 运行 它工作正常。如果我尝试通过 $heroku local
运行 它,我会得到一个错误:
[FAIL] 在当前目录中找不到 Procfile 和 package.json 文件 - 请参阅 运行 --help
我有同样的问题。我刚刚将 system.properties
添加到 spring 应用程序的根文件夹,该文件包含 1 行:
java.runtime.version=11
我在访问我的应用程序时收到以下错误页面:
Application error
An error occurred in the application and your page could not be served. If you are the application owner, check your logs for details. You can do this from the Heroku CLI with the command
heroku logs --tail
然而,heroku logs --tail
没有 return 任何东西。如果我通过网络 (https://dashboard.heroku.com/apps/app-name/logs) 转到仪表板,日志 window 会继续加载,但没有显示任何内容。
我无事可做,Heroku 不接受免费应用的票。有谁知道我可以采取更多步骤来跟踪错误?
附加信息:
构建日志看起来都很好:
BUILD SUCCESSFUL in 49s 5 actionable tasks: 5 executed Discovering process types Procfile declares types -> (none) Default types for buildpack -> web Compressing... Done: 85.2M Launching... Released v3 https://app-name.herokuapp.com/ deployed to Heroku
我正在创建一个 spring Java API,当我尝试在本地 运行 它工作正常。如果我尝试通过
$heroku local
运行 它,我会得到一个错误:[FAIL] 在当前目录中找不到 Procfile 和 package.json 文件 - 请参阅 运行 --help
我有同样的问题。我刚刚将 system.properties
添加到 spring 应用程序的根文件夹,该文件包含 1 行:
java.runtime.version=11