2012-03-05 13:48:03 -08:00
|
|
|
from fabric.api import cd, local, env, run
|
2011-10-23 20:13:37 -07:00
|
|
|
|
2011-10-23 20:07:59 -07:00
|
|
|
|
2012-03-05 13:48:03 -08:00
|
|
|
env.hosts = ['nick@beta.snipt.net:39039']
|
|
|
|
env.site_path = '/var/www/snipt'
|
2012-01-25 07:20:52 -08:00
|
|
|
|
2012-03-05 13:48:03 -08:00
|
|
|
def deploy():
|
|
|
|
local('python manage.py collectstatic --ignore grappelli --ignore admin --noinput')
|
|
|
|
with cd(env.site_path):
|
|
|
|
run('hg pull -u')
|
|
|
|
run('python manage.py collectstatic --ignore grappelli --ignore admin --noinput')
|