Add files via upload

This commit is contained in:
Muhammad Herdy Iskandar
2023-06-28 13:42:33 +07:00
committed by GitHub
parent 7a68ed95f0
commit 7d296eca0a
5 changed files with 157 additions and 0 deletions

15
keep_alive.py Normal file
View File

@@ -0,0 +1,15 @@
from flask import Flask,render_template
from threading import Thread
app = Flask(__name__)
@app.route('/')
def index():
return "Alive"
def run():
app.run(host='0.0.0.0',port=8080)
def keep_alive():
t = Thread(target=run)
t.start()