From eacc4e477e58d174fc2a566f17c8e11944f55310 Mon Sep 17 00:00:00 2001 From: Nick Sergeant Date: Sun, 29 Apr 2012 11:03:08 -0400 Subject: [PATCH] Fix fabfile --- fabfile.py | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/fabfile.py b/fabfile.py index 03d9237..57a01cf 100644 --- a/fabfile.py +++ b/fabfile.py @@ -10,13 +10,9 @@ env.venv_path = '/home/nick/.virtualenvs/snipt' def _python(cmd): return env.venv_path.rstrip('/') + '/bin/python ' + cmd -def deploy(m): +def deploy(): local('python manage.py collectstatic --ignore grappelli --ignore admin --noinput') - try: - local("hg commit -m '{}'".format(m)) - except: - pass try: local('hg push') except: @@ -27,10 +23,9 @@ def deploy(m): run(_python('manage.py collectstatic --ignore grappelli --ignore admin --noinput')) def re(): - sudo('rc.d restart memcached') with cd(env.site_path): - run('/var/www/snipt/gk') - run('/var/www/snipt/gs') + run('./gk') + run('/home/nick/.virtualenvs/snipt/bin/python /home/nick/.virtualenvs/snipt/bin/gunicorn -c gunicorn.conf.py debug_wsgi:application') def db_backup():