Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
T
TrainSys
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
苏州培训方案
TrainSys
提交
4c04c6a5
提交
4c04c6a5
编写于
8月 04, 2025
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
tony001 部署微服务应用 [TrainSys,网页端]
上级
584d1c32
变更
8
展开全部
隐藏空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
1030 行增加
和
1 行删除
+1030
-1
LICENSE
app_Mob/LICENSE
+21
-0
set-version.js
app_Mob/build/set-version.js
+52
-0
ibiz-generate-doc.config.ts
app_Mob/ibiz-generate-doc.config.ts
+928
-0
ibiz-generate-dts.config.ts
app_Mob/ibiz-generate-dts.config.ts
+19
-0
development.png
app_Mob/sample/getting-started/development.png
+0
-0
problem.png
app_Mob/sample/getting-started/problem.png
+0
-0
swarm.yaml
app_Web/swarm.yaml
+1
-1
config.xml
config.xml
+9
-0
未找到文件。
app_Mob/LICENSE
0 → 100644
浏览文件 @
4c04c6a5
MIT License
Copyright (c) 2023-present, iBiz
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
app_Mob/build/set-version.js
0 → 100644
浏览文件 @
4c04c6a5
/* eslint-disable import/newline-after-import */
import
{
readFileSync
,
writeFileSync
}
from
'fs'
;
import
{
dirname
,
join
}
from
'path'
;
import
{
fileURLToPath
}
from
'url'
;
import
{
createRequire
}
from
'module'
;
// 获取当前模块的目录路径
const
__dirname
=
dirname
(
fileURLToPath
(
import
.
meta
.
url
));
// 创建 require 函数来读取 package.json
const
require
=
createRequire
(
import
.
meta
.
url
);
// 获取 package.json 中的版本号
const
packageJson
=
require
(
'../package.json'
);
const
version
=
packageJson
.
version
;
// 环境文件路径
const
envFilePath
=
join
(
__dirname
,
'../public/environments/environment.js'
);
// 读取现有环境文件内容
let
envFileContent
;
try
{
envFileContent
=
readFileSync
(
envFilePath
,
'utf8'
);
}
catch
(
err
)
{
console
.
error
(
`读取环境文件错误:
${
err
}
`
);
process
.
exit
(
1
);
}
// 判断文件类型并处理
let
updatedContent
;
if
(
envFileContent
.
includes
(
'appVersion:'
))
{
// 更新现有 appVersion
updatedContent
=
envFileContent
.
replace
(
/appVersion:
\s
*
[
'"
][^
'"
]
*
[
'"
]
/
,
`appVersion: '
${
version
}
'`
,
);
}
else
{
// 添加 appVersion 到全局对象
updatedContent
=
envFileContent
.
replace
(
/window
\.
Environment =
\{
/
,
`window.Environment = {\n appVersion: '
${
version
}
',`
,
);
}
// 写入更新后的内容
try
{
writeFileSync
(
envFilePath
,
updatedContent
,
'utf8'
);
console
.
log
(
`Successfully set appVersion to
${
version
}
`
);
}
catch
(
err
)
{
console
.
error
(
`写入环境文件错误:
${
err
}
`
);
process
.
exit
(
1
);
}
app_Mob/ibiz-generate-doc.config.ts
0 → 100644
浏览文件 @
4c04c6a5
此差异已折叠。
点击以展开。
app_Mob/ibiz-generate-dts.config.ts
0 → 100644
浏览文件 @
4c04c6a5
import
{
defineGenerateDtsConfig
}
from
'@ibiz-template/cli'
;
export
default
defineGenerateDtsConfig
({
input
:
{
dirs
:
{
core
:
'/root/workspace/template/ibiz-template/packages/core/src/interface/api'
,
runtime
:
'/root/workspace/template/ibiz-template/packages/runtime/src/interface/api'
,
},
},
replaceRules
:
{
'@ibiz-template/core'
:
'core'
,
},
output
:
{
target
:
'all'
,
dir
:
'dts'
,
fileName
:
'types.d.ts'
,
},
});
app_Mob/sample/getting-started/development.png
0 → 100644
浏览文件 @
4c04c6a5
7.6 KB
app_Mob/sample/getting-started/problem.png
0 → 100644
浏览文件 @
4c04c6a5
162.7 KB
app_Web/swarm.yaml
浏览文件 @
4c04c6a5
...
@@ -3,7 +3,7 @@ services:
...
@@ -3,7 +3,7 @@ services:
trainsys-app-web
:
trainsys-app-web
:
image
:
dstimage
image
:
dstimage
ports
:
ports
:
-
"
8
0:80"
-
"
5010
0:80"
networks
:
networks
:
-
agent_network
-
agent_network
environment
:
environment
:
...
...
config.xml
浏览文件 @
4c04c6a5
...
@@ -55,6 +55,15 @@
...
@@ -55,6 +55,15 @@
git clone -b master $para2 trainsys/
git clone -b master $para2 trainsys/
export NODE_OPTIONS=--max-old-space-size=4096
export NODE_OPTIONS=--max-old-space-size=4096
cd trainsys/
cd trainsys/
mkdir -p /var/lib/jenkins/appcache/A3064A91-F42D-4D7F-BC1C-4173A4F5772C
if [ -e app_Web/.dynamic ]
then
cd app_Web
else
cd app_Web/app
fi
sed -i "s#dstimage#registry.cn-shanghai.aliyuncs.com/ibizsys/ibizcloud-standardsys-app-webapp:2022.09.01.001#g" swarm.yaml
docker -H $para1 stack deploy --compose-file=swarm.yaml ebsx --with-registry-auth
</command>
</command>
</hudson.tasks.Shell>
</hudson.tasks.Shell>
</builders>
</builders>
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录