blob: c0c37dcfd7deb53eb99c0fa377c187fc3cfc57a7 [file] [log] [blame]
Rohan Patelf49bd1e2019-09-23 15:04:19 -04001from app import create_app
2
3if __name__ == '__main__':
4 app = create_app()
5
6 # Set SSL context with the certificate chain and the private RSA key.
7 context = ('opt/cert/otf.pem', 'opt/cert/privateKey.pem')
8 app.run(
9 debug=app.config['DEBUG'],
10 host='0.0.0.0', port=5000,
11 use_reloader=True,
12 ssl_context=context)
13 # Run without ssl
14 # app.run(debug=app.config['DEBUG'], host='0.0.0.0', use_reloader=True, port=5000)