Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with Procfile.dev script in windows command line #29

Open
ashok-stack opened this issue Aug 12, 2022 · 0 comments
Open

Issue with Procfile.dev script in windows command line #29

ashok-stack opened this issue Aug 12, 2022 · 0 comments

Comments

@ashok-stack
Copy link

ashok-stack commented Aug 12, 2022

`$ ./bin/dev

C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/foreman-0.87.2/lib/foreman/process.rb:54:in spawn': Exec format error - bin/rails server -p 3000 (Errno::ENOEXEC) from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/foreman-0.87.2/lib/foreman/process.rb:54:in block in run'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/foreman-0.87.2/lib/foreman/process.rb:53:in chdir' from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/foreman-0.87.2/lib/foreman/process.rb:53:in run'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/foreman-0.87.2/lib/foreman/engine.rb:367:in block (2 levels) in spawn_processes' from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/foreman-0.87.2/lib/foreman/engine.rb:364:in upto'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/foreman-0.87.2/lib/foreman/engine.rb:364:in block in spawn_processes' from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/foreman-0.87.2/lib/foreman/engine.rb:363:in each'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/foreman-0.87.2/lib/foreman/engine.rb:363:in spawn_processes' from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/foreman-0.87.2/lib/foreman/engine.rb:57:in start'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/foreman-0.87.2/lib/foreman/cli.rb:42:in start' from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/foreman-0.87.2/lib/foreman/vendor/thor/lib/thor/command.rb:27:in run'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/foreman-0.87.2/lib/foreman/vendor/thor/lib/thor/invocation.rb:126:in invoke_command' from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/foreman-0.87.2/lib/foreman/vendor/thor/lib/thor.rb:369:in dispatch'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/foreman-0.87.2/lib/foreman/vendor/thor/lib/thor/base.rb:444:in start' from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/foreman-0.87.2/bin/foreman:7:in <top (required)>'
from C:/Ruby30-x64/bin/foreman:25:in load' from C:/Ruby30-x64/bin/foreman:25:in

'
`

webpack had a similar kind of issue rails/webpacker#613 they got around that by adding ruby infront while invoking the task i've tried the similar approach and it worked. added ruby path before executing the command in Procfile.dev

`web: C:/Ruby30-x64/bin/ruby.exe bin/rails server -p 3000

css: C:/Ruby30-x64/bin/ruby.exe bin/rails dartsass:watch`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant