fnp
/
redakcja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
333700b
)
Dodanie fabfile pozwalające na wdrożenie nowej wersji projektu na stigma (przy użyciu...
author
zuber
<marek@stepniowski.com>
Tue, 6 Oct 2009 11:39:37 +0000
(13:39 +0200)
committer
zuber
<marek@stepniowski.com>
Tue, 6 Oct 2009 11:39:37 +0000
(13:39 +0200)
fabfile.py
[new file with mode: 0644]
patch
|
blob
diff --git a/fabfile.py
b/fabfile.py
new file mode 100644
(file)
index 0000000..
1cf2679
--- /dev/null
+++ b/
fabfile.py
@@ -0,0
+1,11
@@
+from fabric.api import run, env, cd
+
+def staging():
+ '''Add staging server to hosts'''
+ env.hosts += ['platforma@stigma.nowoczesnapolska.org.pl:2222']
+
+def deploy():
+ '''Deploy server'''
+ with cd('platforma'):
+ run('git pull')
+ run('./project/manage.py syncdb')