Updated line endings to be in line with UNIX style
This commit is contained in:
54
app.py
54
app.py
@@ -1,27 +1,27 @@
|
||||
from flask import Flask
|
||||
from os import environ
|
||||
from controllers.web.endpoints import blueprint
|
||||
|
||||
'''
|
||||
Main entrypoint for Flask application.
|
||||
Initialises any components that are needed at runtime such as the
|
||||
Database manager...
|
||||
'''
|
||||
|
||||
app = Flask(__name__)
|
||||
|
||||
# Set app secret key to sign session cookies
|
||||
secret_key = environ.get("APPSECRET")
|
||||
if secret_key is None:
|
||||
# NO Secret Key set!
|
||||
print("No app secret set, please set one before deploying in production")
|
||||
app.secret_key = "DEFAULTKEY"
|
||||
else:
|
||||
app.secret_key = secret_key
|
||||
|
||||
# Register a blueprint
|
||||
app.register_blueprint(blueprint)
|
||||
|
||||
if __name__ == "__main__":
|
||||
app.run(debug=True, host="0.0.0.0", port=8080)
|
||||
|
||||
from flask import Flask
|
||||
from os import environ
|
||||
from controllers.web.endpoints import blueprint
|
||||
|
||||
'''
|
||||
Main entrypoint for Flask application.
|
||||
Initialises any components that are needed at runtime such as the
|
||||
Database manager...
|
||||
'''
|
||||
|
||||
app = Flask(__name__)
|
||||
|
||||
# Set app secret key to sign session cookies
|
||||
secret_key = environ.get("APPSECRET")
|
||||
if secret_key is None:
|
||||
# NO Secret Key set!
|
||||
print("No app secret set, please set one before deploying in production")
|
||||
app.secret_key = "DEFAULTKEY"
|
||||
else:
|
||||
app.secret_key = secret_key
|
||||
|
||||
# Register a blueprint
|
||||
app.register_blueprint(blueprint)
|
||||
|
||||
if __name__ == "__main__":
|
||||
app.run(debug=True, host="0.0.0.0", port=8080)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user