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.