Skip to content

Commit e3d577c

Browse files
committed
Merge pull request pallets#228 from akavlie/master
Corrections to fabfile example
2 parents 15c937b + c6e4d74 commit e3d577c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/patterns/fabric.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ hosts. These hosts can be defined either in the fabfile or on the command
3232
line. In this case we will add them to the fabfile.
3333

3434
This is a basic first example that has the ability to upload the current
35-
sourcecode to the server and install it into a already existing
35+
sourcecode to the server and install it into a pre-existing
3636
virtual environment::
3737

3838
from fabric.api import *
@@ -53,12 +53,12 @@ virtual environment::
5353
put('dist/%s.tar.gz' % dist, '/tmp/yourapplication.tar.gz')
5454
# create a place where we can unzip the tarball, then enter
5555
# that directory and unzip it
56-
run('mkdir yourapplication')
56+
run('mkdir /tmp/yourapplication')
5757
with cd('/tmp/yourapplication'):
5858
run('tar xzf /tmp/yourapplication.tar.gz')
59-
# now setup the package with our virtual environment's
60-
# python interpreter
61-
run('/var/www/yourapplication/env/bin/python setup.py install')
59+
# now setup the package with our virtual environment's
60+
# python interpreter
61+
run('/var/www/yourapplication/env/bin/python setup.py install')
6262
# now that all is set up, delete the folder again
6363
run('rm -rf /tmp/yourapplication /tmp/yourapplication.tar.gz')
6464
# and finally touch the .wsgi file so that mod_wsgi triggers

0 commit comments

Comments
 (0)