Skip to content

Wrong PATH for downloaded ruby for heroku-22 and above? #127

@tkrevh

Description

@tkrevh

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:

echo "export PATH=\"\${HOME}/${vendored_ruby_dir}/bin:\${PATH}\"" > "${BUILD_DIR}/.profile.d/ruby.sh"

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions