Symfony on Heroku: 403 Forbidden You don't have permission to access / on this server

為{幸葍}努か 提交于 2019-11-29 06:53:36

It is not possible. more than 3 hours to find a solution. A solution that could not be found in all the code I posted here.

A really, simple, stupid, small solution: the procfile name. Are you noticing? I'm writing it all in lowercase letters.

The solution? Procfile, with the first letter in uppercase.

It was an hell, but finally I have my app up and running! :D

The easiest way to do this is to type that line without quotation mark.

For Example

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

Incase anyone still having this problem you can try to replace the double quotes with single quotes in the Procfile

Example

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

Should be

'web: vendor/bin/heroku-php-apache2 public/'
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!