X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/fc0461ffeb667b5151b6c1bf354388952a6fb119..7276c049867c5002199692b27850982293005e5d:/deployment/base.py diff --git a/deployment/base.py b/deployment/base.py index 3c1de902..0478f2e2 100644 --- a/deployment/base.py +++ b/deployment/base.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- import os from fabric.api import env, require @@ -16,7 +17,7 @@ class Environment(Task): def run(self, *args, **kwargs): env.project_name = 'redakcja' env.hosts = [self.host] - for k,v in self.env_vars.items(): + for k, v in self.env_vars.items(): env[k] = v require('app_path') @@ -25,6 +26,8 @@ class Environment(Task): % (self.npm_bin, os.path.join(env['app_path'], 'npm_env')) if 'node_bin_path' in self.env_vars: build_cmd += ' --node-bin-path=%s' % self.env_vars['node_bin_path'] + if 'editor_optimize' in self.env_vars: + build_cmd += ' --editor-optimize=%s' % self.env_vars['editor_optimize'] env.pre_collectstatic = [ Command([build_cmd], '')