spring
spring copied to clipboard
Need to increase `BOOT_TIMEOUT` or make it configurable
I need to run DatabaseCleaner.clean_with(:truncation) before forking so I added it to config/spring.rb. This caused spring server to exit with timeout after 20 seconds. I looked for a way to patch this by extending Spring::Client::Run but to no avail, for some reason. Added the patch to both lib/ and initializers, still not working.
Forking only to change this constant seems like quite an overkill.
What would you recommend I do in this case? Submit a PR? fork?
Thanks!
A PR to make this configurable seems reasonable
"Nice" to hear someone had the same problem!
Here's the PR: https://github.com/rails/spring/pull/554
Sadly is failing for something that does not seem related to my changes (works in local). @jonleighton do you have any suggestion or advice for me?