Ask coding questions

← Back to all posts
Keep code running while closed?
feld88

Hey,
I would like my code running 24/7. However, when I close the repl.it browser tab, the python console seems to stop aswell. Any idea on how to prevent this? And no, I'm not making a discord bot ;)

Thanks in advance.

Voters
feld88
Comments
hotnewtop
CosmicBear

Add a webserver to the project and use uptime robot or something similar to ping the website and keep the main programming running at the same time.

IMayBeMe

Use uptime robot to ping your repl every 5 or so minutes. It’s the best free option there is

MrVoo

You need the hacker plan, but why would you need a console project to stay online?

feld88

@MrVoo My python script uses an API to communicate with a website and completes a few tasks every 5 minutes. I can't have the script running on my PC because it's not always on.

MrVoo

@feld88 Hm, you probably need hacker plan then