mirror of https://github.com/veops/cmdb.git
update
This commit is contained in:
parent
e129b0a32e
commit
13e9a0b7bd
2
.env
2
.env
|
@ -4,4 +4,4 @@ FLASK_DEBUG=1
|
||||||
FLASK_ENV=development
|
FLASK_ENV=development
|
||||||
GUNICORN_WORKERS=2
|
GUNICORN_WORKERS=2
|
||||||
LOG_LEVEL=debug
|
LOG_LEVEL=debug
|
||||||
SECRET_KEY='YourSecretKey'
|
SECRET_KEY='<YourSecretKey>'
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
"""Create an application instance."""
|
|
||||||
|
|
||||||
from flask import g
|
from flask import g
|
||||||
from flask_login import current_user
|
from flask_login import current_user
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
from api.app import create_app
|
from api.app import create_app
|
||||||
from api.extensions import celery
|
from api.extensions import celery
|
||||||
|
|
||||||
# celery worker -A celery_worker.celery -l DEBUG -E -Q <queue_name>
|
# celery worker -A celery_worker.celery -l DEBUG -E -Q <queue_name> --concurrency=1
|
||||||
print(celery)
|
print(celery)
|
||||||
|
|
||||||
app = create_app()
|
app = create_app()
|
||||||
|
|
|
@ -4,6 +4,7 @@ max-line-length = 120
|
||||||
exclude = migrations/*
|
exclude = migrations/*
|
||||||
max-complexity = 10
|
max-complexity = 10
|
||||||
|
|
||||||
|
|
||||||
[isort]
|
[isort]
|
||||||
line_length = 88
|
line_length = 88
|
||||||
multi_line_output = 3
|
multi_line_output = 3
|
||||||
|
|
|
@ -1,2 +1 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
"""Tests for the app."""
|
|
||||||
|
|
Loading…
Reference in New Issue