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

rake routes draws outdated information #40

Open
a-b opened this issue Feb 9, 2017 · 2 comments
Open

rake routes draws outdated information #40

a-b opened this issue Feb 9, 2017 · 2 comments

Comments

@a-b
Copy link

a-b commented Feb 9, 2017

I'm trying to draw routes as soon as routes.rb changes.
My Guardfile:

guard :rake, task: :routes, run_on_start: true, run_on_all: false do
  watch('config/routes.rb')
end

The problem is that when I change file rake routes output does not reflect recent changes.
Also, it runs very fast, like the rails app been preloaded.

How to approach this problem?

@ened
Copy link

ened commented Jul 10, 2018

The plugin will keep the rake process in cache, this might also be spring related.

@ened
Copy link

ened commented Jul 10, 2018

I switched to guard-shell for my usecase, it should be trivial for yours, too.

https://github.com/guard/guard-shell

guard :shell do
  watch(%r{^config/routes.rb}) do
    `bin/rake routes`
  end
end

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

2 participants