Skip to content

Instantly share code, notes, and snippets.

@jmg
Created January 30, 2014 01:40
Show Gist options
  • Save jmg/8701102 to your computer and use it in GitHub Desktop.
Save jmg/8701102 to your computer and use it in GitHub Desktop.
django deploy fabric
from fabric.api import run, env
def staging():
env.hosts = ['[email protected]']
def prod():
env.hosts = ['[email protected]']
def deploy():
commands = [
"pip install django",
"django-admin.py startproject testfabric",
"python testfabric/manage.py runserver 0.0.0.0:8001"
]
map(run, commands)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment