Skip to content

Commit

Permalink
Merge branch '6417-bundler-depecations' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
gbp committed Feb 15, 2023
2 parents 8ee8090 + 5274930 commit 7182bcd
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions script/rails-deploy-before-down
Original file line number Diff line number Diff line change
Expand Up @@ -97,18 +97,22 @@ fi

OPTION_BUNDLE_PATH=$(bin/config BUNDLE_PATH)
BUNDLE_PATH="${OPTION_BUNDLE_PATH:-vendor/bundle}"

bundle_install_options="--path $BUNDLE_PATH"
bundle config set --local path $BUNDLE_PATH

if [ "$STAGING_SITE" = "0" ]
then
bundle_install_options="$bundle_install_options --without development debug test --deployment"
bundle config set --local deployment 'true'
bundle config set --local without 'development debug test'
else
bundle_install_options="$bundle_install_options"
bundle config unset --local deployment
bundle config unset --local without
fi

echo "Running bundle install with options: $bundle_install_options"
bundle install $bundle_install_options
echo "Bundle install options:"
bundle config list

echo "Running bundle install:"
bundle install

bundle exec rake submodules:check

Expand Down

0 comments on commit 7182bcd

Please sign in to comment.