From: Jan Szejko Date: Thu, 28 Jan 2016 11:28:28 +0000 (+0100) Subject: update counters on beta deploy X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/b0de516e7d42ae67a87c6cae601986b787c7f080?ds=inline;hp=--cc update counters on beta deploy --- b0de516e7d42ae67a87c6cae601986b787c7f080 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'), ]