-
Notifications
You must be signed in to change notification settings - Fork 508
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
Reloader should not reload all .rb files in the project #45
Comments
Yes this is a good point! |
Yep thanks for this Issue I forgot test/spec !! |
Hi! Thanks for this issue solved in: http://github.com/padrino/padrino-framework/commit/5ee4781cbded7caf64f69019af29da2411c379c9
Tell me if you have other problems. Best regards |
Awesome, thanks for the quick response. I'll give it a try. |
Try also new admin and tell us your feedback |
I have tests for my app in test/. If I update a test file and then refresh the app in my browser, it seems that the test file is getting included in Padrino's auto-reloader, which of course causes the app to choke and sputter because the test files weren't meant to be loaded that way. In padrino-core/reloader.rb, is Padrino::Reloader::Stat#rotation loading every .rb file in my project? If so, it would probably be a good idea to exclude test/ or spec/ -- or even better, just reload files in the project root, app/ and lib/ (and possibly config/ too).
The text was updated successfully, but these errors were encountered: