We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89f376e commit dd94e61Copy full SHA for dd94e61
conntestd/app.py
@@ -49,10 +49,14 @@ def post_request(resp):
49
return resp
50
51
52
-if __name__ == "__main__":
+def main():
53
init_db(DB_CONN)
54
scheduler = APScheduler()
55
scheduler.init_app(app)
56
scheduler.start()
57
run_speedtest()
58
app.run('0.0.0.0', threaded=True)
59
+
60
61
+if __name__ == "__main__":
62
+ main()
setup.py
@@ -19,6 +19,9 @@
19
long_description="",
20
zip_safe=False,
21
22
+ entry_points = {'console_scripts': [
23
+ 'command-name = conntestd.app:main',],},
24
25
package_data={'/conntestd/templates':['*'],
26
'/conntestd/static/js':['*'],
27
'/conntestd/static/css':['*'],},
0 commit comments