Fix Studio site crashing when rotatePHPRuntime was executed - #1019
Conversation
ivan-ottinger
left a comment
There was a problem hiding this comment.
After applying the proposed change, I cannot reproduce the issue anymore. 👌🏼 Nice! The correct index.php is preserved. Great investigation!
One thing to consider is that the sites that already have their index.php replaced with the default one won't get fixed automatically.
If this is not a widespread issue, we could let the affected users know how to get their index.php file back, or we could consider addressing that in the PR as well.
Good point. I think the safest approach is letting the user know and suggesting them to update the index.php file manually. |
Related issues
Proposed Changes
Why?
It seems in the past the
rotatePHPRuntimewas starting a fresh Playground that needed mounting the directories, and that's not the case anymore.Testing Instructions
npm startRecreating and rotating PHP runtimeevery ~10 PHP requests.I've also observed that the message
Stopped watching for file changesbut I confirm that the file changes are still working. I edited the main index.php and I saw the changes applied correctly in the browser.Pre-merge Checklist