0

I am trying to host a laravel application oh heroku. But i'm gettin the access forbidden message. I have created the Procfile and placed the following code

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

I have also placed the following code in my composer.json

 "php artisan clear-compiled",
 "php artisan optimize",
 "chmod -R 777 public/"

I also have checked if the htaccess file exist in public directory. I'm still getting the error. Please help me with this some one

Mutasim Fuad
  • 606
  • 2
  • 12
  • 31

1 Answers1

1

Make sure your Procfile is inside the root directory of your project (not inside public/), and that it contains web: vendor/bin/heroku-php-apache2 public

Daniele
  • 1,063
  • 1
  • 10
  • 22