Laravel localhost works, but heroku gives 500 error

前端 未结 6 2238
旧巷少年郎
旧巷少年郎 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:57

    Set 2 config variables in heroku with following commands:

    1 heroku config:set APP_DEBUG=true
    2 heroku config:set APP_KEY=RandomString

    After setting these keys you will be able to see the actual error instead of general 500.

提交回复
热议问题