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

guard fails on windows #156

Open
attobyte opened this issue Feb 24, 2019 · 0 comments
Open

guard fails on windows #156

attobyte opened this issue Feb 24, 2019 · 0 comments

Comments

@attobyte
Copy link

Guard fails with ERROR - No such file or directory - bin/rails test when running bundle exec guard

Environment

Windows 10
Rails 5.2.2
guard-minitest 2.4.6

My guardfile has guard :minitest, spring: 'bin/rails test', all_on_start: false do

The file bin/rails has #!/usr/bin/env ruby which obiously will not work on Windows.

Several internet posts suggest modifying the guard file to:
guard :minitest, spring: 'rake test', all_on_start: false do
guard :minitest, all_on_start: false do

I went with this option thinking bin/rails script should be ran.
guard :minitest, spring: 'ruby bin/rails test', all_on_start: false do

ruby is in my path on the windows box using a rvm like utility.

Is there a recommended fix that is cross platform supported?

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