Permalink
Browse files

Add missing "git push" in examples.

  • Loading branch information...
1 parent b7f29cb commit 0d96e8ec800fdcdd0101e6cf579c5a841a53cf55 @m4z committed Apr 26, 2012
Showing with 13 additions and 0 deletions.
  1. +13 −0 docs/tutorial.rst
View
@@ -135,6 +135,7 @@ ready for a deploy::
def prepare_deploy():
local("./manage.py test my_app")
local("git add -p && git commit")
+ local("git push")
The output of which might look a bit like this::
@@ -154,6 +155,10 @@ The output of which might look a bit like this::
<interactive Git add / git commit edit message session>
+ [localhost] run: git push
+
+ <git push session, possibly merging conflicts interactively>
+
Done.
The code itself is straightforward: import a Fabric API function,
@@ -178,9 +183,13 @@ subtasks::
def commit():
local("git add -p && git commit")
+ def push():
+ local("git push")
+
def prepare_deploy():
test()
commit()
+ push()
The ``prepare_deploy`` task can be called just as before, but now you can make
a more granular call to one of the sub-tasks, if desired.
@@ -427,9 +436,13 @@ its entirety::
def commit():
local("git add -p && git commit")
+ def push():
+ local("git push")
+
def prepare_deploy():
test()
commit()
+ push()
def deploy():
code_dir = '/srv/django/myproject'

0 comments on commit 0d96e8e

Please sign in to comment.