forked from retoor/devplacepy
update
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
import devplacepy_services.base.bootstrap
|
||||
|
||||
from devplacepy.services.backup.service import BackupService
|
||||
from devplacepy_services.base.service import BaseMicroservice, build_standard_app
|
||||
|
||||
|
||||
class BackupMicroservice(BaseMicroservice):
|
||||
name = "backup"
|
||||
title = "Backup"
|
||||
default_port = 10633
|
||||
workers = 1
|
||||
stateful = True
|
||||
depends_on = ["database"]
|
||||
managed_services = [BackupService()]
|
||||
use_background = True
|
||||
run_supervisor = True
|
||||
|
||||
def build_app(self):
|
||||
return build_standard_app(self)
|
||||
|
||||
|
||||
_service = BackupMicroservice()
|
||||
app = _service.build_app()
|
||||
Reference in New Issue
Block a user