Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#6417] Fix bundler deprecation warnings #7588

Merged
merged 1 commit into from
Feb 15, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 11 additions & 7 deletions script/rails-deploy-before-down
Original file line number Diff line number Diff line change
Expand Up @@ -97,21 +97,25 @@ 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 [ "$CI" = "true" ]
then
bundle_install_options="$bundle_install_options --deployment"
bundle config set --local deployment 'true'
elif [ "$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