Skip to content

Commit

Permalink
Split out the css rebuilding into its own fab method.
Browse files Browse the repository at this point in the history
  • Loading branch information
ericflo committed Sep 10, 2008
1 parent 7bde253 commit 04e8206
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions fabfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.