Exemplo n.º 1
0
def deploy(actor=None):
    """ Deploy current master to production server """
    opts = dict(
        sitename=env.get('sitename'),
        actor=actor or env.get('actor') or getpass.getuser(),
    )
    controls.update()
    controls.build()
    project.cluster.restart_clients()
    msg = '[hph] *%(sitename)s* deployed by %(actor)s' % opts
    user = '******'
    icon = ':shipit:'
    slack.chat.post_message('#general', msg, username=user, icon_emoji=icon)
Exemplo n.º 2
0
def deploy_site():
    """ Deploy a new site to production """
    push()
    controls.update()
    controls.build()
    controls.reload_supervisor()
Exemplo n.º 3
0
def deploy():
    """ Deploy current master to production server """
    push()
    controls.update()
    controls.build()