Skip to content

Commit

Permalink
Merge pull request #5875 from tvdeyen/fix-sandbox-command
Browse files Browse the repository at this point in the history
fix: bin/sandbox command
  • Loading branch information
tvdeyen authored Oct 18, 2024
2 parents fc2b820 + d7623ea commit f6d8dbf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,9 @@ commands:
cd <<parameters.app_root>>
unset RAILS_ENV # avoid doing everything on the test environment
bin/rails server -p 3000 &
wget --quiet --output-document - --tries=30 --retry-connrefused "http://localhost:3000<<parameters.path>>" | grep "<<parameters.expected_text>>"
wget --no-verbose --output-document output.html --tries=30 --retry-connrefused "http://localhost:3000<<parameters.path>>"
cat output.html
grep "<<parameters.expected_text>>" output.html
echo "Exited with $?"
kill $(cat "tmp/pids/server.pid")
Expand Down
2 changes: 1 addition & 1 deletion bin/sandbox
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ rm -rf ./sandbox

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

0 comments on commit f6d8dbf

Please sign in to comment.