You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After upgrading Heroku stack from 20 to 22, the nginx buildpack cannot compile nginx.conf.erb. It cannot find the erb executable.
The reason is that I use heroku-buildpack-subdir so that my runtime directory of nginx buildpack is /app/nginx. But this buildpack's compile script adds /app/.heroku-buildpack-nginx/ruby/bin to PATH, assuming that buildpack always lives in /app.
So heroku-buildpack-nginx doesn't work on Heroku stack 22 if you change the buildpack runtime directory from /app.
Now the solution could be to calculate the buildpack runtime directory from BUILD_DIR.
The text was updated successfully, but these errors were encountered:
r4victor
changed the title
PATH to vendored Ruby is incorrect if buildpack dir is not default
PATH to vendored Ruby is incorrect if buildpack dir differs from the default
Sep 2, 2022
After upgrading Heroku stack from 20 to 22, the nginx buildpack cannot compile
nginx.conf.erb
. It cannot find theerb
executable.The reason is that I use heroku-buildpack-subdir so that my runtime directory of nginx buildpack is
/app/nginx
. But this buildpack'scompile
script adds/app/.heroku-buildpack-nginx/ruby/bin
toPATH
, assuming that buildpack always lives in/app
.So heroku-buildpack-nginx doesn't work on Heroku stack 22 if you change the buildpack runtime directory from
/app
.Now the solution could be to calculate the buildpack runtime directory from
BUILD_DIR
.The text was updated successfully, but these errors were encountered: