Permalink
Browse files

Split out the css rebuilding into its own fab method.

  • Loading branch information...
1 parent 7bde253 commit 04e8206a8610666c6027fc0f4be5e786e4bd5513 @ericflo committed Sep 10, 2008
Showing with 4 additions and 4 deletions.
  1. +4 −4 fabfile.py
View
@@ -13,13 +13,13 @@ def link_nginx():
sudo('ln -s /etc/nginx/sites-available/startthedark.com /etc/nginx/sites-enabled/startthedark.com')
sudo('/etc/init.d/nginx reload')
-def deploy():
- 'Deploy startthedark.'
+def rebuild_prod_css():
local('bash make_prod_css.sh')
- set(fab_fail = 'ignore')
local('git commit -a -m "Rebuilt Prod CSS For Commit"')
local('git push origin master')
- set(fab_fail = 'abort')
+
+def deploy():
+ 'Deploy startthedark.'
run('cd /var/www/startthedark.com/startthedark; git pull;')
run('cd /var/www/startthedark.com/startthedark; /usr/bin/python manage.py syncdb')
sudo('/etc/init.d/apache2 reload')

0 comments on commit 04e8206

Please sign in to comment.