Skip to content

Commit

Permalink
Bundler: Set local deployment via config, not command flag
Browse files Browse the repository at this point in the history
Fixes the following deprecation:

[DEPRECATED] The `--deployment` flag is deprecated because it relies on
being remembered across bundler invocations, which bundler will no
longer do in future versions. Instead please use `bundle config set
--local deployment 'true'`, and stop using this flag
  • Loading branch information
sagepe committed Dec 9, 2021
1 parent 9e781ad commit 2d754c2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/post_deploy.bash
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
cd "$(dirname $BASH_SOURCE)"/..

bundle install --deployment --binstubs ../gem-bin
bundle config set --local deployment 'true'
bundle install --binstubs ../gem-bin
cd $1
../../gem-bin/sass --update assets/sass:assets/css --style compressed
../../gem-bin/jekyll build

0 comments on commit 2d754c2

Please sign in to comment.