fnp
/
wolnelektury.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
4438d27
)
update counters on beta deploy (fix)
author
Jan Szejko
<j-sz@o2.pl>
Thu, 28 Jan 2016 14:55:15 +0000
(15:55 +0100)
committer
Jan Szejko
<j-sz@o2.pl>
Thu, 28 Jan 2016 14:55:15 +0000
(15:55 +0100)
fabfile.py
patch
|
blob
|
history
diff --git
a/fabfile.py
b/fabfile.py
index
2badd97
..
5473b6d
100644
(file)
--- a/
fabfile.py
+++ b/
fabfile.py
@@
-1,7
+1,6
@@
+# -*- coding: utf-8 -*-
from fnpdeploy import *
from fnpdeploy import *
-from catalogue.helpers import update_counters
-
try:
from fabfile_local import *
except ImportError:
try:
from fabfile_local import *
except ImportError:
@@
-24,6
+23,13
@@
def production():
]
]
+def update_counters():
+ print '>>> update counters'
+ require('app_path', 'project_name')
+ with cd(get_django_root_path('current')):
+ run('%(ve)s/bin/python manage.py update_counters' % env, pty=True)
+
+
@task
def beta():
env.hosts = ['giewont.icm.edu.pl']
@task
def beta():
env.hosts = ['giewont.icm.edu.pl']