23 lines
568 B
Python
23 lines
568 B
Python
|
|
import devplacepy_services.base.bootstrap
|
||
|
|
|
||
|
|
from devplacepy.services.audit import AuditService
|
||
|
|
from devplacepy_services.base.service import BaseMicroservice, build_standard_app
|
||
|
|
|
||
|
|
|
||
|
|
class AuditMicroservice(BaseMicroservice):
|
||
|
|
name = "audit"
|
||
|
|
title = "Audit"
|
||
|
|
default_port = 10639
|
||
|
|
workers = 1
|
||
|
|
stateful = True
|
||
|
|
depends_on = ["database"]
|
||
|
|
managed_services = [AuditService()]
|
||
|
|
use_background = True
|
||
|
|
run_supervisor = True
|
||
|
|
|
||
|
|
def build_app(self):
|
||
|
|
return build_standard_app(self)
|
||
|
|
|
||
|
|
|
||
|
|
_service = AuditMicroservice()
|
||
|
|
app = _service.build_app()
|