Bug fix in the documentation for Deploying with Fabric: as of Fabric 1.0, in the local() function capture=False by default, so it must be explicitly set to capture=True so it returns a python string (http://docs.fabfile.org/en/1.0.1/api/core/operations.html#fabric.operations.local)
This commit is contained in:
parent
e6b9f509ba
commit
c40937e7bf
1 changed files with 1 additions and 1 deletions
|
|
@ -48,7 +48,7 @@ virtual environment::
|
||||||
|
|
||||||
def deploy():
|
def deploy():
|
||||||
# figure out the release name and version
|
# figure out the release name and version
|
||||||
dist = local('python setup.py --fullname').strip()
|
dist = local('python setup.py --fullname', capture=True).strip()
|
||||||
# upload the source tarball to the temporary folder on the server
|
# upload the source tarball to the temporary folder on the server
|
||||||
put('dist/%s.tar.gz' % dist, '/tmp/yourapplication.tar.gz')
|
put('dist/%s.tar.gz' % dist, '/tmp/yourapplication.tar.gz')
|
||||||
# create a place where we can unzip the tarball, then enter
|
# create a place where we can unzip the tarball, then enter
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue