简体   繁体   English

Laravel 错误调试页面未正确加载

[英]Laravel error debug page not loading correctly

I am trying to deploy a Laravel app to Heroku with Heroku Postgress.我正在尝试使用 Heroku Postgress 将 Laravel 应用程序部署到 Heroku。 When I deploy however, error debug pages do not seem to load any CSS or JS, making it almost impossible to extract the info I need from the error page effectively.然而,当我部署时,错误调试页面似乎没有加载任何 CSS 或 JS,因此几乎不可能有效地从错误页面中提取我需要的信息。 My browser dev tool only shows an error such as我的浏览器开发工具只显示错误,例如

Firefox Firefox

Loading failed for the <script> with source “blob:https://... <script> 加载失败,源为“blob:https://...

Chrome铬合金

Failed to load resource: the server responded with a status of 500 (Internal Server Error)加载资源失败:服务器响应状态为 500(内部服务器错误)

The network tool also tells me the only data coming is the HTML from the 500 response in this case.网络工具还告诉我,在这种情况下,唯一的数据是来自 500 响应的 HTML。

I have made sure APP_DEBUG is true, APP_ENV is set to development and other essential variables are set.我确保 APP_DEBUG 为真,APP_ENV 设置为开发,并设置了其他基本变量。 The error page looks fine when running locally and the app works fine when deployed other than the errors I need the debug page for to begin with.错误页面在本地运行时看起来很好,并且应用程序在部署时工作正常,除了我需要调试页面开始的错误。

here is the Procfile:这是Procfile:

web: vendor/bin/heroku-php-apache2 public/

The console (censored and not including the trace from the error causing the page to be displayed in the first place):控制台(经过审查,不包括导致页面首先显示的错误的跟踪):

2020-08-12T09:10:18.108148+00:00 app[web.1]: xxx - - [12/Aug/2020:09:10:17 +0000] "GET /xxx/1/xxx/create HTTP/1.1" 500 973197 "https://xxx.herokuapp.com/xxx/1" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:79.0) Gecko/20100101 Firefox/79.0
2020-08-12T09:10:18.401914+00:00 app[web.1]: xxx - - [12/Aug/2020:09:10:18 +0000] "GET /favicon.ico HTTP/1.1" 200 - "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:79.0) Gecko/20100101 Firefox/79.0

You may have misconfigured the Procfile and that is causing 500 error.您可能错误地配置了 Procfile 并导致 500 错误。

Attach the Procfile and the error from the console so that we could understand it more.附上控制台中的 Procfile 和错误,以便我们更了解它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM