Skip to content

Instantly share code, notes, and snippets.

View tvjames's full-sized avatar
🇦🇺

Thomas James tvjames

🇦🇺
View GitHub Profile
@tvjames
tvjames / gist:3116218
Created July 15, 2012 10:38
fabric apply_mono_webapp task
@task
def apply_nginx_role(hostname=''):
if (hostname == ''):
hostname = env.host.partition('.')[0]
# requires backports
system.install('nginx', 'squeeze-backports')
@task
def apply_nginx_reload():
system.run_or_sudo('nginx -s reload')