Skip to content

Commit 879911c

Browse files
justin808claude
andcommitted
Update both OSS and Pro dummy apps bin/dev to use new wrapper pattern
- Replace spec/dummy/bin/dev symlink with wrapper script - Replace react_on_rails_pro/spec/dummy/bin/dev bash script with wrapper - Both wrappers call the base dev script with --route=/ for their respective dummy apps - Use File.expand_path for proper path resolution This ensures both dummy apps use the root route (/) instead of the default hello_world route from the template. Generated with Claude Code (https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 757d1f7 commit 879911c

File tree

2 files changed

+5
-9
lines changed
  • react_on_rails_pro/spec/dummy/bin
  • spec/dummy/bin

2 files changed

+5
-9
lines changed
Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
1-
#!/usr/bin/env bash
1+
#!/usr/bin/env ruby
2+
# frozen_string_literal: true
23

3-
if ! command -v foreman &> /dev/null
4-
then
5-
echo "Installing foreman..."
6-
gem install foreman
7-
fi
8-
9-
foreman start -f Procfile.dev
4+
# This script calls the base dev script with a fixed route for the dummy app
5+
exec File.expand_path("../../../../lib/generators/react_on_rails/templates/base/base/bin/dev", __dir__), "--route=/", *ARGV

spec/dummy/bin/dev

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
# frozen_string_literal: true
33

44
# This script calls the base dev script with a fixed route for the dummy app
5-
exec File.join(__dir__, "../../../lib/generators/react_on_rails/templates/base/base/bin/dev"), "--route=/", *ARGV
5+
exec File.expand_path("../../../lib/generators/react_on_rails/templates/base/base/bin/dev", __dir__), "--route=/", *ARGV

0 commit comments

Comments
 (0)