Skip to content

Commit

Permalink
Ensure clean Ruby/Bundler environment when executing api-umbrella.
Browse files Browse the repository at this point in the history
  • Loading branch information
GUI committed Feb 14, 2017
1 parent ca51566 commit 7d9208c
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions bin/api-umbrella-env
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,21 @@ fi
export LUA_CPATH="$API_UMBRELLA_EMBEDDED_ROOT/apps/core/shared/vendor/lib/lua/5.1/?.so;\
$API_UMBRELLA_EMBEDDED_ROOT/openresty/lualib/?.so;\
$API_UMBRELLA_EMBEDDED_ROOT/openresty/luajit/lib/lua/5.1/?.so"

# Ignore any Ruby Bundler wrapper settings, since we always want to use our
# internal gems and bundler.
#
# This helps ensure we don't accidentally pick up another version of Ruby or
# another Gemfile if the process calling api-umbrella has its own bundler
# environment set (while probably rare, this happens in some of our
# build/package/verify scripts, since they use Ruby to perform tests).
unset BUNDLER_ORIG_PATH
unset BUNDLER_VERSION
unset BUNDLE_APP_CONFIG
unset BUNDLE_BIN_PATH
unset BUNDLE_GEMFILE
unset GEM_HOME
unset GEM_PATH
unset RUBYLIB
unset RUBYOPT
unset RUBY_ROOT

0 comments on commit 7d9208c

Please sign in to comment.