@@ -0,0 +1,1563 @@
+from fabric.api import env, run, local%0D%0A%0D%0A%0D%0Adef live():%0D%0A    %22%22%22Connects to the server.%22%22%22%0D%0A    env.hosts = %5B'%7B%7Bcookiecutter.domain_name%7D%7D'%5D%0D%0A    env.user = 'username'%0D%0A    env.cwd = '/var/www/%7B%7Bcookiecutter.project_name%7D%7D'%0D%0A    env.connect_to = '%7B0%7D@%7B1%7D:%7B2%7D'.format(env.user, env.hosts%5B0%5D, env.cwd)%0D%0A%0D%0A%0D%0Adef gitpull(tag=None):%0D%0A    %22%22%22Pulls upstream brunch on the server.%22%22%22%0D%0A    if tag is not None:%0D%0A        run('git pull')%0D%0A        run('git checkout %25s' %25 tag)%0D%0A    else:%0D%0A        run('git pull')%0D%0A%0D%0A%0D%0Adef collectstatic():%0D%0A    %22%22%22Collect static files --noinput on server.%22%22%22%0D%0A    run('%7B%7Bcookiecutter.repo_name%7D%7D/manage.py collectstatic --noinput')%0D%0A%0D%0A%0D%0Adef migrate():%0D%0A    %22%22%22Sync project database on server.%22%22%22%0D%0A    run('%7B%7Bcookiecutter.repo_name%7D%7D/manage.py migrate')%0D%0A%0D%0Adef touch():%0D%0A    %22%22%22Touch the wsgi file.%22%22%22%0D%0A    run('touch %7B%7Bcookiecutter.repo_name%7D%7D/%7B%7Bcookiecutter.repo_name%7D%7D.wsgi')%0D%0A%0D%0A%0D%0Adef update(tag=None):%0D%0A    %22%22%22Runs gitpull, develop, collectstatic, migrate and touch.%0D%0A    %22%22%22%0D%0A    gitpull()%0D%0A    collectstatic()%0D%0A    compress()%0D%0A    syncdb()%0D%0A    migrate()%0D%0A    touch()%0D%0A%0D%0A%0D%0Adef dump():%0D%0A    run('%7B%7Bcookiecutter.repo_name%7D%7D/manage.py sqldump')%0D%0A%0D%0A%0D%0Adef sync_media():%0D%0A    local('rsync -avzh --exclude %22CACHE%22 -e ssh %25s/../media/* ../media' %25 env.connect_to)%0D%0A%0D%0A%0D%0Adef sync_dump():%0D%0A    local('rsync -avPhzL -e ssh %25s/var/dump.sql.gz var' %25 env.connect_to)%0D%0A%0D%0A%0D%0Adef mirror():%0D%0A    %22%22%22Runs dump, sync_media, sync_dump and sqlimport.%22%22%22%0D%0A    dump()%0D%0A    sync_media()%0D%0A    sync_dump()%0D%0A    local('%7B%7Bcookiecutter.repo_name%7D%7D/manage.py sqlimport')

add basic fabfile