-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong PATH for downloaded ruby for heroku-22 and above? #127
Comments
No, I can't reproduce this - Ruby gets installed, and the path set correctly, for my simple test case. Are you using this in combination with another buildpack by any chance? |
@tkrevh please provide output from the build, as well as logs from app startup. If you're using a custom Nginx config, please share that if you can. Also, a |
heroku-22+ no longer includes ruby
|
That's not the issue though, @chap - the buildpack installs Ruby for this exact reason. Must be something else. |
@dzuelke yes, we're using a couple of other buildpacks
Our custom nginx config is here:
I will provide other requested information in a couple of days. We're preparing a major release and I've put this aside for a few days. |
That would be very useful, @tkrevh. We're still unable to reproduce this. |
Any news here, @tkrevh? Can you reproduce this easily on a new app? |
I'm sorry, we just had a major release and our focus is elsewhere. I will revisit this later in the week. |
All good, I know how it is sometimes, @tkrevh :) |
@dzuelke thank you for your patience. I got back to this... just to realize what a stupid mistake I made. I overlooked the fact, that we were using a fork of this buildpack. Totally my fault, so sorry! The only reason we're keeping our own fork of the buildpack is the correct support for SIGTERM. Any chance we could get it merged? |
Ah, that explains a lot! :) We'll take a look at #88 - the PHP buildpack does something similar for its Nginx build (and HTTPD, and PHP-FPM). |
Thank you, appreciate it 🙏 |
Hello!
I'm trying to upgrade to heroku-22 and I'm running into issue that erb command needed by start-nginx script is not found.
Could it be, that the following line:
heroku-buildpack-nginx/bin/compile
Line 50 in 201ffe1
should actually reference
${BUILD_DIR}
instead of${HOME}
?Like this:
echo "export PATH=\"\${BUILD_DIR}/${vendored_ruby_dir}/bin:\${PATH}\"" > "${BUILD_DIR}/.profile.d/ruby.sh"
If you look at line 40, the folder is created like this:
mkdir -p "${BUILD_DIR}/${vendored_ruby_dir}"
But when setting the path, another variable is used.
This works fine on heroku-20 and earlier versions as it seems they came with preinstalled Ruby.
The text was updated successfully, but these errors were encountered: