Laravel localhost works, but heroku gives 500 error

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

    For problem with key in heroku add this code in config/app.php:

    'key' => env('APP_KEY', 'SomeRandomStringSomeRandomString'),
    

    In terminal write this command

    heroku config:set APP_KEY=SomeRandomStringSomeRandomString
    

提交回复
热议问题