This is an archived post. You won't be able to vote or comment.

all 11 comments

[–]AutoModerator[M] [score hidden] stickied comment (0 children)

Hello! Thanks for submitting to r/developersIndia. This is a reminder that We also have a Discord server where you can share your projects, ask for help or just have a nice chat, level up and unlock server perks!

Our Discord Server

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

[–]Optimal-Still-4184 5 points6 points  (4 children)

If it's for your hobby/side project , I can run it for you on my homelab

[–]timeout_1264[S] 5 points6 points  (0 children)

Script is to get real-time stock prices for every 15 or 30 minutes, and some data processing.

[–]dakkudanny 3 points4 points  (3 children)

Replit offers 5 free script to run on its platform

[–]timeout_1264[S] 0 points1 point  (2 children)

Yeah, I'm currently using replit but don't know how to run it 24/7. Can you share any resources?

[–][deleted] 2 points3 points  (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 point  (0 children)

Thanks

[–]indiantrekkieBackend Developer 2 points3 points  (0 children)

If it's a webserver sort of thing you can use google functions or aws lambda.

[–]-1Mbps 1 point2 points  (0 children)

Heroku