mirror of
https://github.com/alerta/alerta.git
synced 2025-01-30 11:36:20 +00:00
28 lines
464 B
Python
28 lines
464 B
Python
|
|
import sys
|
|
|
|
from flask import Flask
|
|
|
|
from alerta.common import config
|
|
from alerta.common import log as logging
|
|
from alerta.common.mq import Messaging
|
|
from alerta.server.database import Mongo
|
|
|
|
Version = '2.0.1'
|
|
|
|
LOG = logging.getLogger(__name__)
|
|
CONF = config.CONF
|
|
|
|
config.parse_args(version=Version)
|
|
logging.setup('alerta')
|
|
|
|
app = Flask(__name__)
|
|
app.config.from_object(__name__)
|
|
db = Mongo()
|
|
|
|
mq = Messaging()
|
|
mq.connect()
|
|
|
|
import views
|
|
import management.views
|
|
|