Skip to content

Commit

Permalink
Fix bin/dev
Browse files Browse the repository at this point in the history
- accidentally overwritten with a newer version that doesn't
  use foreman when updating to Rails 8. Doesn't affect
  govuk-docker users, but causes a surprise port change for
  people using it outside of govuk-docker.
  • Loading branch information
KludgeKML committed Feb 3, 2025
1 parent 6f35edd commit d4372f7
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions bin/dev
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
#!/usr/bin/env ruby
exec "./bin/rails", "server", *ARGV
#!/usr/bin/env sh

if ! gem list foreman -i --silent; then
echo "Installing foreman..."
gem install foreman
fi

exec foreman start -f Procfile.dev "$@"

0 comments on commit d4372f7

Please sign in to comment.