fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update counters on beta deploy
[wolnelektury.git]
/
fabfile.py
diff --git
a/fabfile.py
b/fabfile.py
index
e614e9c
..
2badd97
100644
(file)
--- a/
fabfile.py
+++ b/
fabfile.py
@@
-1,4
+1,7
@@
-from fnpdjango.deploy import *
+from fnpdeploy import *
+
+from catalogue.helpers import update_counters
+
try:
from fabfile_local import *
except ImportError:
try:
from fabfile_local import *
except ImportError:
@@
-13,6
+16,8
@@
def production():
env.hosts = ['giewont.icm.edu.pl']
env.user = 'lektury'
env.app_path = '/srv/wolnelektury.pl'
env.hosts = ['giewont.icm.edu.pl']
env.user = 'lektury'
env.app_path = '/srv/wolnelektury.pl'
+ env.django_root_path = 'src'
+ env.requirements_file = 'requirements/requirements.txt'
env.services = [
Supervisord('wolnelektury'),
Supervisord('wolnelektury.celery'),
env.services = [
Supervisord('wolnelektury'),
Supervisord('wolnelektury.celery'),
@@
-24,7
+29,15
@@
def beta():
env.hosts = ['giewont.icm.edu.pl']
env.user = 'lektury'
env.app_path = '/srv/wolnelektury.pl/beta'
env.hosts = ['giewont.icm.edu.pl']
env.user = 'lektury'
env.app_path = '/srv/wolnelektury.pl/beta'
- env.services = []
+ env.ve = '/srv/wolnelektury.pl/ve'
+ env.django_root_path = 'src'
+ env.requirements_file = 'requirements/requirements.txt'
+ env.pre_collectstatic = [
+ update_counters,
+ ]
+ env.services = [
+ Supervisord('beta'),
+ ]
@task
@task