diff --git a/snipt/fabfile.py b/snipt/fabfile.py index ec44d51..2a2dc0f 100644 --- a/snipt/fabfile.py +++ b/snipt/fabfile.py @@ -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') diff --git a/snipt/media/css/style.css b/snipt/media/css/style.css index a1a6254..a8d6834 100644 --- a/snipt/media/css/style.css +++ b/snipt/media/css/style.css @@ -433,6 +433,3 @@ article.snipt footer ul.attrs li.comments { .hidden { display: none; } -body { - background: blue; -} diff --git a/snipt/media/css/style.less b/snipt/media/css/style.less index 4bc9518..20929f0 100644 --- a/snipt/media/css/style.less +++ b/snipt/media/css/style.less @@ -515,7 +515,3 @@ article.snipt { .hidden { display: none; } - -body { - background: blue; -}