Skip to content

Commit 72e077d

Browse files
authored
Create KeepAlive.py
1 parent b0f122d commit 72e077d

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/KeepAlive.py

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
from flask import Flask
2+
from threading import Thread
3+
4+
app = Flask('')
5+
6+
@app.route('/')
7+
def home():
8+
return "Im Alive.."
9+
10+
def run():
11+
app.run(host='0.0.0.0',port=8080)
12+
13+
def keep_alive():
14+
t = Thread(target=run)
15+
t.start()

0 commit comments

Comments
 (0)