Ping your Glitch server every minute to keep it running 24/7
Glitch projects stop every 5 minutes for performance optimization. If you need to keep your Glitch project live, copy and run this workflow. It will make a request to your Glitch server every minute.
I added a custom route in my Glitch server at /wakeup
to catch these requests:
app.get("/wakeup", function(request, response) {
console.log("i'm awake");
response.send("i'm awake")
});
This is the Glitch project I'm keeping live with this workflow (if you want to see more of the code):
https://glitch.com/edit/#!/bedecked-piano-0yxv6z7pze?path=server.js:20:0