Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 496 Bytes

upgrade.md

File metadata and controls

27 lines (20 loc) · 496 Bytes

Automating upgrades

To upgrade your project to the latest version from git, add this to your fabfile:

@task
def git_pull():
    with virtualenv():
        run("git pull", pty=False)

@task
def collect_static():
    m('collectstatic --noinput')

@task
def reload_app():
    sudo('systemctl reload uwsgi.service')

@task
def upgrade():
    git_pull()
    migrate()
    collect_static()
    reload_app()

and run:

fab upgrade