Autocommit by [fab staticfiles]

master
Nick Sergeant 2011-10-23 23:20:08 -04:00
parent 85111da250
commit 3d5853f9f9
1 changed files with 5 additions and 2 deletions

7
snipt/fabfile.py vendored
View File

@ -6,8 +6,11 @@ def staticfiles():
BASE_PATH = os.path.dirname(__file__)
local('lessc %s/media/css/style.less %s/media/css/style.css' % (BASE_PATH, BASE_PATH))
local('coffee -c %s/media/js/script.coffee' % BASE_PATH)
local('hg commit -m "Autocommit by [fab staticfiles]"')
local('hg push')
try:
local('hg commit -m "Autocommit by [fab staticfiles]"')
local('hg push')
except:
pass
local('%s/manage.py collectstatic' % BASE_PATH)
def deployall():