Rabu, 03 November 2021

Heroku Laravel 403 Forbidden You don't have permission to access this resource.

 


Cara memperbaiki deploy laravel ke heroku dimana akses 403 atau forbidden seperti ini
403 Forbidden
You don't have permission to access this resource.

Buka file composer.json lalu tambahkan
"post-install-cmd": [
     "php artisan clear-compiled",
     "chmod -R 777 public/"
 ]

Buat file Procfile lalu isi dengan

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

 

 

Load disqus comments

0 komentar