Answer the question
In order to leave comments, you need to log in
Why doesn't heroku-buildpack-php parse php code in config if config is set explicitly?
There is a small nginx + web application.
According to the instructions, I created a Procfile file with the following content:
web: vendor/bin/heroku-php-nginx -c nginx.conf -F php-fpm.conf www Inserted the default config into the
nginx.conf file
As a result, in the heroku logs mistake:
nginx: [emerg] invalid host in "<?=getenv('PORT')?:'8080'?>" of the "listen" directive in /app/nginx.conf: 52
Answer the question
In order to leave comments, you need to log in
Renamed nginx.conf to heroku.conf.php (as in the original) and it helped. Apparently the extension matters.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question