From b0de516e7d42ae67a87c6cae601986b787c7f080 Mon Sep 17 00:00:00 2001 From: Jan Szejko Date: Thu, 28 Jan 2016 12:28:28 +0100 Subject: [PATCH] update counters on beta deploy --- fabfile.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/fabfile.py b/fabfile.py index bdf0fad40..2badd97a8 100644 --- a/fabfile.py +++ b/fabfile.py @@ -1,4 +1,7 @@ from fnpdeploy import * + +from catalogue.helpers import update_counters + try: from fabfile_local import * except ImportError: @@ -29,6 +32,9 @@ def beta(): 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'), ] -- 2.20.1