Laravel localhost works, but heroku gives 500 error

前端 未结 6 2233
旧巷少年郎
旧巷少年郎 2021-02-15 13:18

I\'m working in a project that needs to convert some data from excel to database. This is working fine in local host with laravel, but when goes to heroku, it gives me a 500 int

6条回答
  •  生来不讨喜
    2021-02-15 13:50

    I discovered the why I had the 500 error. It was because I was putting date configuration wrong.

    So, this post solved my problem.

    During the study to find the error, I discoverd that laravel has a debug messages when deploy too. So I change the debug mode to true.

    directory: "laravel/config/app.php"

    /*
        |--------------------------------------------------------------------------
        | Application Debug Mode
        |--------------------------------------------------------------------------
        |
        | When your application is in debug mode, detailed error messages with
        | stack traces will be shown on every error that occurs within your
        | application. If disabled, a simple generic error page is shown.
        |
        */
    
        'debug' => env('APP_DEBUG', true),
    

提交回复
热议问题