Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
L
loit-build-common
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
loit-Infrastructure
loit-build-common
Commits
5da3c9e6
提交
5da3c9e6
authored
5月 22, 2021
作者:
chenshiying
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[新增] 部署脚本更新
上级
7b0c32e2
显示空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
18 行增加
和
7 行删除
+18
-7
.gitignore
.gitignore
+1
-1
READEME.md
loit-build-component/loit-build-deploy-env/READEME.md
+8
-0
GeneratorScript.java
...src/main/java/com/loit/common/script/GeneratorScript.java
+4
-4
formatFile.sh
...oit-build-deploy-env/src/main/resources/bin/formatFile.sh
+3
-0
copyNginxConfig.ftl
...eploy-env/src/main/resources/template/copyNginxConfig.ftl
+1
-1
userNames.txt
...t/loit-build-gitlab-user/src/main/resources/userNames.txt
+1
-1
没有找到文件。
.gitignore
浏览文件 @
5da3c9e6
...
...
@@ -35,4 +35,4 @@ build/
### project Code ###
**/src/main/resources/bin/server
Test
/**
**/src/main/resources/bin/server/**
loit-build-component/loit-build-deploy-env/READEME.md
浏览文件 @
5da3c9e6
...
...
@@ -83,6 +83,10 @@ pssh -h /home/soft/deploy/server/host_ip_skywalking.txt -i bash /usr/local/src/m
8、部署文件更新
文件进行 dos/unix 格式转换
```
shell
sh formatFile.sh
```
发送最新部署文件
...
...
@@ -90,6 +94,7 @@ pssh -h /home/soft/deploy/server/host_ip_skywalking.txt -i bash /usr/local/src/m
sh push_script.sh
```
执行初始化 /home/soft 脚本
```
shell
pssh
-h
/home/soft/deploy/server/host_ip_push_script.txt
-i
bash /home/soft/initEnv.sh
...
...
@@ -100,3 +105,6 @@ pssh -h /home/soft/deploy/server/host_ip_push_script.txt -i bash /home/soft/init
```
shell
pssh
-h
/home/soft/deploy/server/host_ip_push_script.txt
-i
bash /home/soft/copyNginxConfig.sh
```
loit-build-component/loit-build-deploy-env/src/main/java/com/loit/common/script/GeneratorScript.java
浏览文件 @
5da3c9e6
...
...
@@ -26,7 +26,7 @@ public class GeneratorScript {
protected
static
String
root_path
=
"F:\\9Git140\\loit-build-common\\loit-build-component\\loit-build-deploy-env\\src\\main\\resources\\bin"
;
protected
static
String
root_path_full
=
root_path
+
"\\server
Test
"
;
protected
static
String
root_path_full
=
root_path
+
"\\server"
;
public
static
void
main
(
String
[]
args
)
{
...
...
@@ -84,9 +84,9 @@ public class GeneratorScript {
File
file
=
new
File
(
filePath
);
if
(!
file
.
exists
())
{
FileUtils
.
write
(
filePath
,
"#!/bin/bash "
);
//TODO
FileUtils
.
appendNewLine
(
filePath
,
"rm -rf /home/soft/*"
);
//
//
//TODO
//
FileUtils.appendNewLine(filePath, "rm -rf /home/soft/*");
}
String
deployPath
=
grayVersionDataDTO
.
getDeployPath
();
...
...
loit-build-component/loit-build-deploy-env/src/main/resources/bin/formatFile.sh
0 → 100644
浏览文件 @
5da3c9e6
find /home/soft
-name
"*.sh"
| xargs
sed
-i
's/\r$//g'
find /home/soft
-name
"*.conf"
| xargs
sed
-i
's/\r$//g'
find /home/soft
-name
"*.properties"
| xargs
sed
-i
's/\r$//g'
loit-build-component/loit-build-deploy-env/src/main/resources/template/copyNginxConfig.ftl
浏览文件 @
5da3c9e6
#!/bin/bash
\c
p
-rf
/home/soft/nginxConfig/ /usr/local/nginx/conf/conf.d.start/
\c
p
-rf
/home/soft/nginxConfig/
*
/usr/local/nginx/conf/conf.d.start/
loit-build-component/loit-build-gitlab-user/src/main/resources/userNames.txt
浏览文件 @
5da3c9e6
关志鹏
杜力名
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论