More fab
parent
4204fbbc1a
commit
88dfc45ac7
|
@ -2,7 +2,16 @@ import os
|
|||
|
||||
from fabric.api import local
|
||||
|
||||
def deploy():
|
||||
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('coffee -c %s/media/js/script.coffee' % BASE_PATH)
|
||||
local('%s/manage.py collectstatic' % BASE_PATH)
|
||||
|
||||
def deployall()
|
||||
staticfiles()
|
||||
deployapp()
|
||||
|
||||
def deployapp()
|
||||
local('hgp')
|
||||
local('hg push-heroku')
|
||||
|
|
|
@ -433,6 +433,3 @@ article.snipt footer ul.attrs li.comments {
|
|||
.hidden {
|
||||
display: none;
|
||||
}
|
||||
body {
|
||||
background: blue;
|
||||
}
|
||||
|
|
|
@ -515,7 +515,3 @@ article.snipt {
|
|||
.hidden {
|
||||
display: none;
|
||||
}
|
||||
|
||||
body {
|
||||
background: blue;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue