-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.py
More file actions
executable file
·33 lines (25 loc) · 814 Bytes
/
run.py
File metadata and controls
executable file
·33 lines (25 loc) · 814 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/usr/bin/python3
from flask import Flask, render_template
import logging
from R_jenkins.blueprint import jenkins_routes
from R_docker.blueprint import docker_routes
from R_gitlab.blueprint import gitlab_routes
from R_ldap.blueprint import ldap_routes
app = Flask(__name__)
app.register_blueprint(jenkins_routes)
app.register_blueprint(docker_routes)
app.register_blueprint(gitlab_routes)
app.register_blueprint(ldap_routes)
app.secret_key = "mySecretKey"
logging.basicConfig(
filename="app.log",
level=logging.INFO,
format="%(asctime)s [ %(levelname)s ] %(name)s\n" +
"[ %(funcName)s ] [ %(filename)s, %(lineno)s ] %(message)s",
datefmt="[ %d/%m/%Y %H:%M:%S ]"
)
@app.route("/")
def index():
return render_template('index.html')
if __name__ == "__main__":
app.run(debug=True)