from fabric.api import *

env.user = 'fifoci'
env.hosts = ['underlord.dolphin-emu.org']

def deploy():
    with cd("/home/fifoci/fifoci"):
        run("git fetch")
        run("git checkout master")
        run("git reset --hard origin/master")
        with cd("/home/fifoci/fifoci/frontend"):
            run("~/python manage.py collectstatic --noinput")
            run("pkill -HUP gunicorn")

from fabric.api import *

env.user = 'fifoci'
env.hosts = ['underlord.dolphin-emu.org']

def deploy():
    with cd("/home/fifoci/fifoci"):
        run("git fetch")
        run("git checkout master")
        run("git reset --hard origin/master")
        run("~/pip install -r requirements.txt")
        with cd("/home/fifoci/fifoci/frontend"):
            run("~/python manage.py collectstatic --noinput")
            run("pkill -HUP gunicorn")

install requirements when deploying