diff --git a/fabric_bolt/projects/views.py b/fabric_bolt/projects/views.py index 23f30df..1b7528c 100644 --- a/fabric_bolt/projects/views.py +++ b/fabric_bolt/projects/views.py @@ -362,7 +362,9 @@ class DeploymentOutputStream(View): """ def build_command(self): - command = ['fab', self.object.task.name, '--abort-on-prompts'] + command = [getattr(settings, 'VENV_PATH', '') + 'fab ' + '-f {} '.format( + settings.FABFILE_PATH + ) + self.object.task.name + ' --abort-on-prompts'] hosts = self.object.stage.hosts.values_list('name', flat=True) if hosts: