Skip to content

Instantly share code, notes, and snippets.

@bitprophet
Created November 14, 2009 00:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bitprophet/234290 to your computer and use it in GitHub Desktop.
Save bitprophet/234290 to your computer and use it in GitHub Desktop.
from fabric.api import *
env.host_string = 'my_user@my_django_host'
env.roledefs = {
'host1': run('workon myenv && ./manage.py account_to_shell')
}
@roles('host1')
def mytask():
run('whatever')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment