Skip to content

Commit

Permalink
Merge pull request #5551 from solidusio/elia/sandbox-rails-version
Browse files Browse the repository at this point in the history
Generate the sandbox using the version of Rails coming from the Gemfile
  • Loading branch information
elia authored Dec 13, 2023
2 parents c4d62df + cb1aaba commit 2dfb06e
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 2dfb06e

Please sign in to comment.