Skip to content

Commit

Permalink
Need to put bundler into $bundle_base ourselves.
Browse files Browse the repository at this point in the history
  • Loading branch information
danp committed Mar 21, 2013
1 parent 98ae693 commit 14ef71c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions bin/compile
Expand Up @@ -88,8 +88,8 @@ export LANG=\${LANG:-en_US.UTF-8}
export PATH="\$HOME/bin:\$HOME/$bundle_base/bin:\$HOME/vendor/$ruby_version/bin:\$PATH"
export RACK_ENV=\${RACK_ENV:-production}
EOF
export GEM_PATH="$bundler_tmp:$BUILD_DIR/$bundle_base:$GEM_PATH"
export PATH="$bundler_tmp/bin:$BUILD_DIR/bin:$BUILD_DIR/$bundle_base/bin:$BUILD_DIR/vendor/$ruby_version/bin:$PATH"
export GEM_PATH="$BUILD_DIR/$bundle_base:$GEM_PATH"
export PATH="$BUILD_DIR/bin:$BUILD_DIR/$bundle_base/bin:$BUILD_DIR/vendor/$ruby_version/bin:$PATH"

say "Installing dependencies"
cache_load .bundle
Expand All @@ -103,6 +103,9 @@ if [ -e vendor/buildpack/ruby_v ] && ! cmp --quiet vendor/buildpack/ruby_v{,.new
rm -rf vendor/bundle
fi
mv vendor/buildpack/ruby_v{.new,}
rm -rf "$bundle_base/gems/bundler-$BUNDLER_VERSION"
cp -a "$bundler_tmp/." "$bundle_base"
rm -rf "$bundle_base/bundler-$BUNDLER_VERSION.gem"
bundle install --without development:test --path vendor/bundle --no-clean | indent
rm -rf "$bundle_base/doc"
cache_store .bundle
Expand Down

0 comments on commit 14ef71c

Please sign in to comment.