Fix fabfile
parent
ecc96009fe
commit
eacc4e477e
|
@ -10,13 +10,9 @@ env.venv_path = '/home/nick/.virtualenvs/snipt'
|
||||||
def _python(cmd):
|
def _python(cmd):
|
||||||
return env.venv_path.rstrip('/') + '/bin/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')
|
local('python manage.py collectstatic --ignore grappelli --ignore admin --noinput')
|
||||||
|
|
||||||
try:
|
|
||||||
local("hg commit -m '{}'".format(m))
|
|
||||||
except:
|
|
||||||
pass
|
|
||||||
try:
|
try:
|
||||||
local('hg push')
|
local('hg push')
|
||||||
except:
|
except:
|
||||||
|
@ -27,10 +23,9 @@ def deploy(m):
|
||||||
run(_python('manage.py collectstatic --ignore grappelli --ignore admin --noinput'))
|
run(_python('manage.py collectstatic --ignore grappelli --ignore admin --noinput'))
|
||||||
|
|
||||||
def re():
|
def re():
|
||||||
sudo('rc.d restart memcached')
|
|
||||||
with cd(env.site_path):
|
with cd(env.site_path):
|
||||||
run('/var/www/snipt/gk')
|
run('./gk')
|
||||||
run('/var/www/snipt/gs')
|
run('/home/nick/.virtualenvs/snipt/bin/python /home/nick/.virtualenvs/snipt/bin/gunicorn -c gunicorn.conf.py debug_wsgi:application')
|
||||||
|
|
||||||
def db_backup():
|
def db_backup():
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue