import os

from fabric.api import *
from fabric.context_managers import shell_env

env.hosts = [
    'leq.sidewayspass.com',
]

def pull():
    env.user   = "leq"
    code_dir = '/webapps/leq/waiter'
    with cd(code_dir):
        run("git pull")

def update():
    env.user   = "leq"
    code_dir = '/webapps/leq/waiter'
    with cd(code_dir):
        with prefix("source activate"):
            run("git pull")
            run("pip install -r requirements/production.txt")
            run("./manage.py collectstatic --noinput")

def deploy():
    env.user = os.environ.get('USER')
    env.shell = "/bin/sh -c"
    sudo("supervisorctl restart leq", pty=False)
    sudo("supervisorctl restart leq_channels_workers", pty=False)
    sudo("supervisorctl restart leq_channels_daphne", pty=False)


1f84d02ba91639f0644e752c2e7a2a439381de6a
<mask token>


def pull():
    env.user = 'leq'
    code_dir = '/webapps/leq/waiter'
    with cd(code_dir):
        run('git pull')


<mask token>

<mask token>


def pull():
    env.user = 'leq'
    code_dir = '/webapps/leq/waiter'
    with cd(code_dir):
        run('git pull')


def update():
    env.user = 'leq'
    code_dir = '/webapps/leq/waiter'
    with cd(code_dir):
        with prefix('source activate'):
            run('git pull')
            run('pip install -r requirements/production.txt')
            run('./manage.py collectstatic --noinput')


def deploy():
    env.user = os.environ.get('USER')
    env.shell = '/bin/sh -c'
    sudo('supervisorctl restart leq', pty=False)
    sudo('supervisorctl restart leq_channels_workers', pty=False)
    sudo('supervisorctl restart leq_channels_daphne', pty=False)

<mask token>
env.hosts = ['leq.sidewayspass.com']


def pull():
    env.user = 'leq'
    code_dir = '/webapps/leq/waiter'
    with cd(code_dir):
        run('git pull')


def update():
    env.user = 'leq'
    code_dir = '/webapps/leq/waiter'
    with cd(code_dir):
        with prefix('source activate'):
            run('git pull')
            run('pip install -r requirements/production.txt')
            run('./manage.py collectstatic --noinput')


def deploy():
    env.user = os.environ.get('USER')
    env.shell = '/bin/sh -c'
    sudo('supervisorctl restart leq', pty=False)
    sudo('supervisorctl restart leq_channels_workers', pty=False)
    sudo('supervisorctl restart leq_channels_daphne', pty=False)

import os
from fabric.api import *
from fabric.context_managers import shell_env
env.hosts = ['leq.sidewayspass.com']


def pull():
    env.user = 'leq'
    code_dir = '/webapps/leq/waiter'
    with cd(code_dir):
        run('git pull')


def update():
    env.user = 'leq'
    code_dir = '/webapps/leq/waiter'
    with cd(code_dir):
        with prefix('source activate'):
            run('git pull')
            run('pip install -r requirements/production.txt')
            run('./manage.py collectstatic --noinput')


def deploy():
    env.user = os.environ.get('USER')
    env.shell = '/bin/sh -c'
    sudo('supervisorctl restart leq', pty=False)
    sudo('supervisorctl restart leq_channels_workers', pty=False)
    sudo('supervisorctl restart leq_channels_daphne', pty=False)

import os

from fabric.api import *
from fabric.context_managers import shell_env

env.hosts = [
    'leq.sidewayspass.com',
]

def pull():
    env.user   = "leq"
    code_dir = '/webapps/leq/waiter'
    with cd(code_dir):
        run("git pull")

def update():
    env.user   = "leq"
    code_dir = '/webapps/leq/waiter'
    with cd(code_dir):
        with prefix("source activate"):
            run("git pull")
            run("pip install -r requirements/production.txt")
            run("./manage.py collectstatic --noinput")

def deploy():
    env.user = os.environ.get('USER')
    env.shell = "/bin/sh -c"
    sudo("supervisorctl restart leq", pty=False)
    sudo("supervisorctl restart leq_channels_workers", pty=False)
    sudo("supervisorctl restart leq_channels_daphne", pty=False)

