-
Notifications
You must be signed in to change notification settings - Fork 21.3k
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 restart task no longer loads entire Rails environment when run #19169
Conversation
Probably not going to affect it but I'm waiting til CI finishes to merge 😁 |
@hjoo your commit message is off as you've already added the rake task. Can you update your commit message to say the task no longer loads the whole Rails environment when run 😄 If you can, a quick explanation of why the task doesn't need the environment would be great too 👍 |
The restart task does not need access to models or other classes and helpers from the application environment.
Oops, fixed it! Thanks for the feedback. 👍 |
Rake restart task no longer loads entire Rails environment when run
Well done 👍 |
Shouldn't this also be |
@waynerobinson Considering this comment the idea is to route commands to rake anyway so this command would have to be added to the supported hybrid rails/rake commands. |
@olivierlacan no problem, just making sure there is some consistency here (not that I whole-heartedly approve of everything rails). |
@hjoo the PR title is misguiding - it looks like the rake task was added in a different PR ? |
@emilsoman it was but the commit has the correct title. I've edited it but I don't think it's a big deal. |
I agree with @waynerobinson . if we're adding this then add |
@seanarnold it will be added. |
👍 |
Fixes #18876. Rake restart touches
tmp/restart.txt
to restartapplication on next request. Updated test and documentation accordingly.