Skip to content

Commit

Permalink
Merge pull request #5992 from solidusio/backport/v4.2/pr-5551
Browse files Browse the repository at this point in the history
[v4.2] Generate the sandbox using the version of Rails coming from the Gemfile
  • Loading branch information
tvdeyen authored Dec 3, 2024
2 parents d41a720 + 3b1fb04 commit ad1418e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/sandbox
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ echo "~~~> Removing the old sandbox"
rm -rf ./sandbox

echo "~~~> Creating a pristine Rails app"
rails new sandbox \
rails_version=`bundle exec ruby -e'require "rails"; puts Rails.version'`
rails _${rails_version}_ new sandbox \
--database="$RAILSDB" \
--skip-git \
--skip-keeps \
Expand Down

0 comments on commit ad1418e

Please sign in to comment.