You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
578 B
30 lines
578 B
#!/usr/bin/env python
|
|
# -*- coding: utf-8 -*-
|
|
|
|
from django.db import connection
|
|
|
|
from deployer.client import start
|
|
|
|
from deployer.node import Node
|
|
|
|
from app.deploy import hosts
|
|
from app.deploy.zuykov import ZuykovWebSystem
|
|
|
|
import app.settings as settings
|
|
|
|
|
|
class RootNode(Node):
|
|
|
|
"""
|
|
The root node of our configuration, containing two 'instances' of
|
|
`WebSystem`,
|
|
"""
|
|
|
|
class ProductionSystem(ZuykovWebSystem):
|
|
class Hosts:
|
|
web = {hosts.WebHost}
|
|
database = {hosts.DatabaseHost}
|
|
|
|
|
|
if __name__ == '__main__':
|
|
start(RootNode)
|
|
|