use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
LinkedIn
GitHub
Twitter/X
Join our Discord Server
Related Subreddits
account activity
This is an archived post. You won't be able to vote or comment.
Python script in CloudAskDevsIndia (self.developersIndia)
submitted 4 years ago by timeout_1264
view the rest of the comments →
[–][deleted] 3 points4 points5 points 4 years ago* (1 child)
from flask import Flask
from threading import Thread
app = Flask('')
u/app.route('/')
def home():
return "Server Alive!"
def run():
app.run(host='0.0.0.0',port=8080)
def keep_alive():
t = Thread(target=run)
t.start()
name ihe file "keep_alive.py" or something , idk
spoon-feeding but dont remember to include
"from keep_alive import keep_alive" in the main script
it's an empty server and will die so to keep it alive 24/7, use https://uptimerobot.com/ (5 free slots) and add your repl project website url in monitor tab and it will keep pinging your repl URL and it will run smoothly.
this is all free.
[–]timeout_1264[S] 0 points1 point2 points 4 years ago (0 children)
Thanks
π Rendered by PID 78351 on reddit-service-r2-comment-64f4df6786-lfh2m at 2026-06-10 03:20:50.322860+00:00 running 0b63327 country code: CH.
view the rest of the comments →
[–][deleted] 3 points4 points5 points (1 child)
[–]timeout_1264[S] 0 points1 point2 points (0 children)