if(open("VERSION","r").read()!=versionServer):print("Different version on the server found. Your version: "+open("VERSION","r").read()+", server version: "+versionServer+".")
if(open("VERSION","r").read()!=versionServer):print("Different version on the server found. Your version: "+open("VERSION","r").read()+", server version: "+versionServer+".")
...
@@ -206,4 +208,6 @@ def startup():
...
@@ -206,4 +208,6 @@ def startup():
else:
else:
app.run(host=host,port=5000,debug=True)#Start the Webserver in Debug mode. This means, if the script runs in an error, it will show the error message in Browser.
app.run(host=host,port=5000,debug=True)#Start the Webserver in Debug mode. This means, if the script runs in an error, it will show the error message in Browser.
if (__name__=="__main__"):startup()#Only run the startup script, if this file is directly called.
returnapp
\ No newline at end of file
if (__name__=="__main__"):startup(production)#Only run the startup script, if this file is directly called.