Created
January 30, 2014 01:40
-
-
Save jmg/8701102 to your computer and use it in GitHub Desktop.
django deploy fabric
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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