heroku-buildpack-php icon indicating copy to clipboard operation
heroku-buildpack-php copied to clipboard

Customizing the PHP-FPM config

Open stof opened this issue 11 years ago • 3 comments

Unless I missed something, the buildpack does not allow customizing the PHP-FPM config.

I need it in one of my project to forward some environment variables from the dyno (set through the heroku config) to the PHP process to access them at runtime

stof avatar Feb 20 '14 10:02 stof

@stof All variables set with heroku config are automatically written to the FPM config and should be available at runtime in both $_SERVER and $_ENV. (See also http://chh-php-test.herokuapp.com/info)

CHH avatar Feb 20 '14 13:02 CHH

ah, I missed the fact that this is handled by the script run at boot time. thanks

However, it may still make sense to allow customizing the FPM config for other purposes. What do you think ?

stof avatar Feb 20 '14 14:02 stof

@stof Yes it makes sense to me :smiley:

CHH avatar Feb 20 '14 14:02 CHH