Skip to content
Myr

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)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by wilsaj · committed by wilsaj · parent e6b9f50 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:docs/patterns/fabric.rst+1 added-1 removed
46 unmodified lines
47 local('python setup.py sdist --formats=gztar', capture=False)4849 def deploy():50 # figure out the release name and version51 dist = local('python setup.py --fullname').strip()51 dist = local('python setup.py --fullname', capture=True).strip()52 # upload the source tarball to the temporary folder on the server53 put('dist/%s.tar.gz' % dist, '/tmp/yourapplication.tar.gz')54 # create a place where we can unzip the tarball, then enter55 # that directory and unzip it
141 unmodified lines