Answer the question
In order to leave comments, you need to log in
Heroku turns off every 20-30 minutes, what should I do?
Ku, I have a Heroku application JP : Node.JS , in short, my Heroku is cut down every 20-30 minutes, but I have an idea, if I use the REQUEST module, I will add this to app.js:
setInterval(() => {
var request = require("request");
var url = "http://miricgamebot.herokuapp.com" // My heroku app
request(url, (error, response, body) => {
console.log(body)
})
}, 300000)
Answer the question
In order to leave comments, you need to log in
Yes, then it will not turn off, most likely.
Judging by the fact that there was no answer for an hour, it would be faster to check it yourself)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question