diff --git a/ci/templates/src/compile.env.erb b/ci/templates/src/compile.env.erb index b78a8fd..962a5bf 100644 --- a/ci/templates/src/compile.env.erb +++ b/ci/templates/src/compile.env.erb @@ -32,8 +32,8 @@ bosh_bundle_local() { bosh_generate_runtime_env() { mkdir -p "${BOSH_INSTALL_TARGET}/bosh" cat > "${BOSH_INSTALL_TARGET}/bosh/runtime.env" < -export PATH=${BOSH_INSTALL_TARGET}/bin:\${GEM_HOME}/bin:\${PATH} -export BUNDLE_GEMFILE=${BOSH_INSTALL_TARGET}/Gemfile +export PATH="${BOSH_INSTALL_TARGET}/bin:\${PATH}" +export GEM_HOME="${BOSH_INSTALL_TARGET}/gem_home/ruby/$(ruby -e 'puts Gem.ruby_api_version')" +export BUNDLE_GEMFILE="${BOSH_INSTALL_TARGET}/Gemfile" EOF }