for h5 root url redirect to index (#898)
* for h5 root url redirect to index
* set h5 threads=True
* set h5 process=True
* set threaded=True
| | |
| | | ### 2022-2023 by zhaoming,mali aihealthx.com
|
| | |
|
| | |
|
| | | from flask import Flask,render_template,request,send_from_directory,jsonify
|
| | | from flask import Flask,render_template,request,send_from_directory,jsonify,redirect,url_for
|
| | | #from gevent.pywsgi import WSGIServer
|
| | |
|
| | | import datetime
|
| | |
| | |
|
| | | @app.route('/')
|
| | | def homePage():
|
| | | return render_template('recorderapp_test.html')
|
| | | return redirect('/static/index.html')
|
| | |
|
| | |
|
| | | parser = argparse.ArgumentParser()
|
| | |
| | | #flask
|
| | | print("srv run on ",port)
|
| | |
|
| | | app.run(debug=True,host=args.host,port=port, ssl_context=(args.certfile,args.keyfile))
|
| | | app.run(debug=False,threaded=True,host=args.host,port=port, ssl_context=(args.certfile,args.keyfile))
|