master
Nick Sergeant 2012-03-05 16:57:18 -05:00
parent 55fa9daa3e
commit 2959328333
3 changed files with 17 additions and 2 deletions

17
fabfile.py vendored
View File

@ -3,9 +3,22 @@ from fabric.api import cd, local, env, run
env.hosts = ['nick@beta.snipt.net:39039']
env.site_path = '/var/www/snipt'
env.venv_path = '/home/nick/.virtualenvs/snipt'
def deploy():
def _python(cmd):
return env.venv_path.rstrip('/') + '/bin/python ' + cmd
def deploy(m):
local('python manage.py collectstatic --ignore grappelli --ignore admin --noinput')
try:
local('hg commit -m {}'.format(m))
local('hg push')
except:
pass
with cd(env.site_path):
run('hg pull -u')
run('python manage.py collectstatic --ignore grappelli --ignore admin --noinput')
run(_python('manage.py collectstatic --ignore grappelli --ignore admin --noinput'))

View File

@ -3,6 +3,7 @@ html, body {
}
body {
background: blue;
color: #666;
font: normal 14px/16px "Helvetica Neue", Helvetica, Arial, "Liberation Sans", FreeSans, sans-serif;
text-rendering: optimizeLegibility;

View File

@ -58,6 +58,7 @@ html, body {
background: #F5F2F3 url('/static/images/bg.gif') top left repeat;
}
body {
background: blue;
color: #666;
font: normal 14px/16px $Helvetica;
text-rendering: optimizeLegibility;