Example #1
0
def compile():
    clean()

    with _cd():
        with rule_aggregator() as ragg:
            for app in DJANGO_APPS:
                app.compile(ragg)

        local('cat _Rules >> Rules')
        local('nanoc compile', capture=False)
Example #2
0
def clean():
    with _cd():
        with settings(warn_only=True):
            for app in DJANGO_APPS:
                app.clean()
            local('rm -r content/app-static/')

            local('rm Rules')

            # don't remove output/ itself, to keep adsf happy
            local('rm -r output/* tmp/')
Example #3
0
def deploy():
    with _cd():
        WWW_ROOT = '/var/www/mrgris'
        WWW_EXCL = ['a']
        rsync_project(WWW_ROOT, 'output/', delete=True, exclude=WWW_EXCL)

        VGM_ROOT = '/home/drew/vgm'
        VGM_LOCAL_ROOT = '/home/drew/music/vgm/'
        rsync_project(VGM_ROOT, local_dir=VGM_LOCAL_ROOT, delete=True)

        WEBAPP_USER = '******'
        for app in DJANGO_APPS:
            app.deploy(WEBAPP_USER)
Example #4
0
def refresh():
    with _cd():
        for app in DJANGO_APPS:
            app.refresh()

    local('gpg --refresh-keys')