Skip to content

Commit

Permalink
Don't re-append env list to php-fpm.conf on every dyno restart.
Browse files Browse the repository at this point in the history
  • Loading branch information
iphoting committed Dec 4, 2012
1 parent 318a2cf commit 52d0e4a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions bin/compile
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,14 @@ if [ -x "/app/local/bin/newrelic-license" ]; then
/app/local/bin/newrelic-license
fi
# Preserve current php-fpm.conf so that env list does
# not go out of hand across restarts.
if [ -r /app/vendor/php/php-fpm.conf.current ]; then
cp -f /app/vendor/php/php-fpm.conf.current /app/vendor/php/php-fpm.conf
else
cp -f /app/vendor/php/php-fpm.conf /app/vendor/php/php-fpm.conf.current
fi
# Expose Heroku config vars to PHP-FPM processes
for var in \`env | cut -f1 -d=\`; do
echo "env[\$var] = \\$\${var}" >> /app/vendor/php/etc/php-fpm.conf
Expand Down

0 comments on commit 52d0e4a

Please sign in to comment.