Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
26 lines (21 sloc) 826 Bytes
fab_hosts = [''],
fab_user = 'startthedark',
def unlink_nginx():
'Un-link nginx rules for startthedark.'
sudo('rm -f /etc/nginx/sites-enabled/')
sudo('/etc/init.d/nginx reload')
def link_nginx():
'Link nginx rules for startthedark'
sudo('ln -s /etc/nginx/sites-available/ /etc/nginx/sites-enabled/')
sudo('/etc/init.d/nginx reload')
def rebuild_prod_css():
local('git commit -a -m "Rebuilt Prod CSS For Commit"')
local('git push origin master')
def deploy():
'Deploy startthedark.'
run('cd /var/www/; git pull;')
run('cd /var/www/; /usr/bin/python syncdb')
sudo('/etc/init.d/apache2 reload')
Something went wrong with that request. Please try again.