Open RedGuy12 opened 3 years ago
Partially fixed, yay!!
This is caused when the page is open for a suspended period at a time. I solved this by making the page redirect when focus is removed from the page. It redirects to a page hosted on GitHub Pages (because I only used Glitch for the PHP). See the code on the gh-pages branch of this repository. When the focus is returned to the page, it redirects back to the page the user was on before.
<input>
, <textarea>
, and <select>
values stay the same
Problem
Last night, 8 hours ago, my project was working fine. But now, it’s just saying “waking up” without actually ever “waking up”! This happens pretty often to me. How can I fix this? It says, “starting” for a second, then “waking up” Up until then, my favicon was showing up. Then it reloads and my favicon disappears. It says “starting” for a few seconds again, then changes to “waking up” again and never changes again. How can I permanently fix the loading issue? When I edited glitch.json earlier, it started working again, but now it’s broken again.
Fixes
But you aren’t really supposed to use it for production apps.
// We're assuming your express app variable is called 'app'
// Apply PHP manager app.engine('php', phpExpress.engine); app.set('view engine', 'php'); app.all(/.+.php$/, phpExpress.router);