Skip to content
Sign upLog in
← Back to Community
Repl always running
Profile icon
RedGuy7

So if i close my repl editor tab, my repl web page dissapears from the web. The same thing happens if I stop running it from withing the tab. So how can I keep it always running, 24/7?
Sevices like UpTimeRobot only make sure it doesn't sleep, or am i getting that wrong?
Also, I need sonething that is free forever.

Answered by RYANTADIPARTHI [earned 5 cycles]
View Answer
Voters
Profile icon
RedGuy7
Comments
hotnewtop
Profile icon
RYANTADIPARTHI

You need a HTTP server. Try hosting it on heroku.com.

Profile icon
RedGuy7

@RYANTADIPARTHI
but isnt repl.it a http server itself?

Profile icon
RYANTADIPARTHI

@RedGuy7
. kind of, but it doesn't run for a long time. meaning forever.

Profile icon
code-alt

@RYANTADIPARTHI
Yep, and that's why I haaate repl.it for hosting stuff.

Profile icon
Coder100

You will need an http server. Without telling me what language, I won't be able to help you with the code specifics, but overall:

  • create an HTTP server
  • use https://uptimerobot.com on the server URL
    • server URL is in the form of [replname].[username].repl.co

sleeping means the repl stopped.

Profile icon
RedGuy7

@Coder100
its html/php.

How wpuld i create a http server?

Can't the url also be [replname]--[username].repl.co

Profile icon
Coder100
Profile icon
RedGuy7

@Coder100
whats this?

Profile icon
NoobNotFound
Profile icon
code-alt

So I think you should probably make your own uptime my pinging your own project