From 2d7c289ec88a23a5a393471a198918a3266900e7 Mon Sep 17 00:00:00 2001 From: guohongze Date: Fri, 16 Feb 2018 16:22:39 +0800 Subject: [PATCH] deploy tips update --- delivery/tasks.py | 4 ++-- docs/Manual.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/delivery/tasks.py b/delivery/tasks.py index 904159fc..92284b85 100644 --- a/delivery/tasks.py +++ b/delivery/tasks.py @@ -19,7 +19,7 @@ def deploy(job_name, server_list, app_path, source_address, project_id, auth_inf log_path = job_workspace + 'logs/' log_name = 'deploy-' + str(p1.deploy_num) + ".log" with open(log_path + log_name, 'wb+') as f: - f.writelines("

Deploying project {}

".format(job_name)) + f.writelines("

Deploying project {} for {1}th

".format(job_name, p1.deploy_num)) if not app_path.endswith("/"): app_path += "/" @@ -66,7 +66,7 @@ def deploy(job_name, server_list, app_path, source_address, project_id, auth_inf p1.bar_data = +5 p1.save() if p1.shell and p1.shell_position: - #cmd = "/usr/bin/bash {0}'".format(deploy_shell) + # cmd = "/usr/bin/bash {0}'".format(deploy_shell) data = sh.bash(deploy_shell) with open(log_path + log_name, 'ab+') as f: f.writelines(data) diff --git a/docs/Manual.md b/docs/Manual.md index 4a4842c1..c17cadaf 100644 --- a/docs/Manual.md +++ b/docs/Manual.md @@ -55,7 +55,7 @@ # 站点导航用法 在站点管理中输入常用的运维工具系统后会自动出现在站点导航界面。 -# 资产穦用法 +# 资产管理用法 一、资产管理 表关系为主机管理关联IDC管理,每个主机选择一相对应的IDC。 表关系为主机管理关联组管理,每个主机选择一相对应的组。