fnp
/
redakcja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
97059a8
)
Dodanie generowania podstawowego pliku VirtualHost.
author
zuber
<marek@stepniowski.com>
Mon, 12 Oct 2009 23:10:32 +0000
(
01:10
+0200)
committer
zuber
<marek@stepniowski.com>
Mon, 12 Oct 2009 23:10:32 +0000
(
01:10
+0200)
fabfile.py
patch
|
blob
|
history
diff --git
a/fabfile.py
b/fabfile.py
index
8b55e58
..
826e7ed
100644
(file)
--- a/
fabfile.py
+++ b/
fabfile.py
@@
-1,5
+1,6
@@
from __future__ import with_statement # needed for python 2.5
from fabric.api import *
from __future__ import with_statement # needed for python 2.5
from fabric.api import *
+from fabric.contrib.files import upload_template
import os
import os
@@
-65,6
+66,7
@@
def deploy():
upload_tar_from_git()
upload_pybundle()
install_requirements()
upload_tar_from_git()
upload_pybundle()
install_requirements()
+ upload_wsgi_script_sample()
symlink_current_release()
migrate()
restart_webserver()
symlink_current_release()
migrate()
restart_webserver()
@@
-134,6
+136,12
@@
def upload_pybundle():
local('pip bundle requirements.pybundle %(pip_options)s -r requirements.txt' % env)
put('requirements.pybundle', '%(path)s' % env)
local('pip bundle requirements.pybundle %(pip_options)s -r requirements.txt' % env)
put('requirements.pybundle', '%(path)s' % env)
+def upload_wsgi_script_sample():
+ "Create and upload a wsgi script sample"
+ print ">>> upload wsgi script sample"
+ print dict(env)
+ upload_template('%(project_name)s.wsgi.template' % env, '%(path)s/%(project_name)s.wsgi.sample' % env, context=env)
+
def symlink_current_release():
"Symlink our current release"
print '>>> symlink current release'
def symlink_current_release():
"Symlink our current release"
print '>>> symlink current release'