File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ hosts. These hosts can be defined either in the fabfile or on the command
32
32
line. In this case we will add them to the fabfile.
33
33
34
34
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
36
36
virtual environment::
37
37
38
38
from fabric.api import *
@@ -53,12 +53,12 @@ virtual environment::
53
53
put('dist/%s.tar.gz' % dist, '/tmp/yourapplication.tar.gz')
54
54
# create a place where we can unzip the tarball, then enter
55
55
# that directory and unzip it
56
- run('mkdir yourapplication')
56
+ run('mkdir /tmp/ yourapplication')
57
57
with cd('/tmp/yourapplication'):
58
58
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')
62
62
# now that all is set up, delete the folder again
63
63
run('rm -rf /tmp/yourapplication /tmp/yourapplication.tar.gz')
64
64
# and finally touch the .wsgi file so that mod_wsgi triggers
You can’t perform that action at this time.
0 commit comments