Delete keep_alive.py
This commit is contained in:
parent
e453796022
commit
d3298ecb4d
1 changed files with 0 additions and 21 deletions
|
@ -1,21 +0,0 @@
|
|||
from flask import Flask
|
||||
from threading import Thread
|
||||
|
||||
app = Flask('')
|
||||
|
||||
header = "None"
|
||||
body = "The next thing generated will show here!"
|
||||
|
||||
@app.route('/')
|
||||
def home():
|
||||
return f"""<h1>Latest - {header}</h1>
|
||||
|
||||
{body}
|
||||
"""
|
||||
|
||||
def run():
|
||||
app.run(host='0.0.0.0',port=8080)
|
||||
|
||||
def keep_alive():
|
||||
t = Thread(target=run)
|
||||
t.start()
|
Loading…
Reference in a new issue