Skip to content

Commit 9f3dc47

Browse files
dsomel21claude
andcommitted
Fix hardcoded RVM shebangs in bin/ stubs
bin/rails, bin/rake, and bin/setup had shebangs pointing to a specific developer's local RVM path (/Users/dilraj/.rvm/...) which doesn't exist in Docker containers (or anyone else's machine). Replace with the portable #!/usr/bin/env ruby form. This fixes the "exec bin/rails: no such file or directory" error when running `docker compose up`. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 66dc376 commit 9f3dc47

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

bin/rails

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/Users/dilraj/.rvm/rubies/ruby-3.4.5/bin/ruby
1+
#!/usr/bin/env ruby
22
# frozen_string_literal: true
33

44
APP_PATH = File.expand_path('../config/application', __dir__)

bin/rake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/Users/dilraj/.rvm/rubies/ruby-3.4.5/bin/ruby
1+
#!/usr/bin/env ruby
22
# frozen_string_literal: true
33

44
require_relative '../config/boot'

bin/setup

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/Users/dilraj/.rvm/rubies/ruby-3.4.5/bin/ruby
1+
#!/usr/bin/env ruby
22
# frozen_string_literal: true
33

44
require 'fileutils'

0 commit comments

Comments
 (0)