update cli commands
This commit is contained in:
parent
619490d206
commit
8418628ef3
3 changed files with 7 additions and 3 deletions
2
setup.py
2
setup.py
|
@ -10,7 +10,7 @@ setup(
|
|||
packages=[
|
||||
'SWSCloudCore',
|
||||
'SWSCloudCore.controllers',
|
||||
'SWSCloudCore.controllers.administrator',
|
||||
'SWSCloudCore.controllers.administrators',
|
||||
'SWSCloudCore.controllers.billing',
|
||||
'SWSCloudCore.controllers.common',
|
||||
'SWSCloudCore.controllers.containers',
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
from SWSServerCDN import model_cdn
|
||||
#!/bin/env python
|
||||
|
||||
from SWSCloudCore import models
|
||||
|
||||
# TODO: connect to database
|
||||
|
||||
models.database.create_tables({
|
||||
models.Admins,
|
||||
models.DataCenters,
|
||||
|
@ -20,5 +22,6 @@ models.database.create_tables({
|
|||
models.ContainersStatistics,
|
||||
models.ContainersStatisticsState,
|
||||
models.Tasks,
|
||||
model_cdn.CdnZones
|
||||
}, safe=True)
|
||||
|
||||
# TODO: close connect with database
|
|
@ -1,3 +1,4 @@
|
|||
#!/bin/env python
|
||||
# coding: utf-8
|
||||
|
||||
from SWSCloudCore import app
|
Loading…
Add table
Reference in a new issue