My project giong to sleep when it shouldn't

My project (name: peeky) is going to sleep every few minutes even though I have set up an Uptime Robot page for it.

Anyone reason why this could be happening?

Hey @Vojtech_Jilovec,

You need to add the lexer or keep-project-alive code to your app:

const http = require('http');
const express = require('express');
const app = express();
app.get('/', (req, res) => {
  res.sendStatus(200);
});
app.listen(process.env.PORT);
setInterval(() => http.get(`http://${process.env.PROJECT_DOMAIN}.glitch.me/`);
}, 280000);

Happy Glitching!

I believe I already had that :pensive:

EDIT: I edited the keep-alive code a bit so maybe it will work smoother now.

Hey there,

I am not quite sure why it is still not working. Thus, I’d like to see for myself. If you’ve properly followed the steps, it should’ve been working perfectly now.
So please message me your app’s invite URL so I can take a look at what it wrong.

Happy Glitching!

Actually, it seems that your keep-alive code works - Guess mine was a bit dusty

Thank you for the help!

1 Like