Skip to content

Commit

Permalink
deploy tips update
Browse files Browse the repository at this point in the history
  • Loading branch information
guohongze committed Feb 16, 2018
1 parent b664068 commit 2d7c289
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions delivery/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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("<h4>Deploying project {} </h4>".format(job_name))
f.writelines("<h4>Deploying project {} for {1}th</h4>".format(job_name, p1.deploy_num))
if not app_path.endswith("/"):
app_path += "/"

Expand Down Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion docs/Manual.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
# 站点导航用法
在站点管理中输入常用的运维工具系统后会自动出现在站点导航界面。

# 资产穦用法
# 资产管理用法
一、资产管理
表关系为主机管理关联IDC管理,每个主机选择一相对应的IDC。
表关系为主机管理关联组管理,每个主机选择一相对应的组。
Expand Down

0 comments on commit 2d7c289

Please sign in to comment.