Autocommit by [fab staticfiles]

master
Nick Sergeant 2011-10-24 00:18:56 -04:00
parent 544cd9c5f1
commit 32f2aab7cd
2 changed files with 21 additions and 21 deletions

4
snipt/fabfile.py vendored
View File

@ -9,13 +9,13 @@ def staticfiles():
local('sed -i -e \'s/\/media\//https:\/\/dn2p0mzo970os.cloudfront.net\//g\' %s/media/css/style.css' % BASE_PATH)
local('rm %s/media/css/style.css-e' % BASE_PATH)
local('cat %s/media/css/*.css > %s/media/cache/snipt.css' % (BASE_PATH, BASE_PATH))
local('cat %s/media/js/*.js > %s/media/cache/snipt.js' % (BASE_PATH, BASE_PATH))
local('cat %s/media/js/jquery.js %s/media/js/jquery.*.js %s/media/js/script.js > %s/media/cache/snipt.js' % (BASE_PATH, BASE_PATH, BASE_PATH, BASE_PATH))
try:
local('hg commit -m "Autocommit by [fab staticfiles]"')
local('hg push')
except:
pass
local('%s/manage.py collectstatic' % BASE_PATH)
#local('%s/manage.py collectstatic' % BASE_PATH)
def deployall():
staticfiles()

File diff suppressed because one or more lines are too long