Update config.ru when running app:update task - #49704
Conversation
|
Ref: #41083 where updating |
04e6bf4 to
8d2bcad
Compare
|
@skipkayhil oh, that's a bummer, but I understand the intent, though I guess:
...may be true, but it's important that they do change when they do change. I'll go back to the drawing board then. Maybe I could try logging a (Deprecation?) warning if say |
Oh, but that would need to live in middleware or like a |
|
Ah, sorry I didn't mean to say this wouldn't be accepted, just trying to add some context 😅 I agree it's unfortunate that there was only a single (6.1) version of Rails that updated |
Motivation / Background
This PR ensures that the
config.rufile is updated when runningbin/rails app:updateDetail
This Pull Request has been created because changes were made to the default
config.rufile to support aRailtie#server dohook in #39953 and merged via f8a1a8a).Inspecting the initial PR vs the final commit, the PR contains the change to
#config_when_updating, but the subsequent commit does not, so maybe just an oversight: https://github.com/rails/rails/pull/39953/files#diff-4521b0667f0d930737cfa0a1ced7dd5c00a15909503123cf3752a6c6ebfcca04R143As a gem developer who would love to use this hook in my Railties/Engines, I've noticed that many older Rails apps have not updated their
config.ruto trigger this hook. Which also means I've done gross workarounds, which I'd love the chance to slightly avoid.Noted in bensheldon/good_job#1106 (comment)
Checklist
Before submitting the PR make sure the following are checked:
[Fix #issue-number]