@winner-fed/winner-deploy 3.1.0 → 3.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
Binary file
|
|
@@ -29,7 +29,6 @@
|
|
|
29
29
|
<variables describe="集群基本参数">
|
|
30
30
|
<field name="user" label="安装用户" type="input">root</field>
|
|
31
31
|
<field name="workspace" label="前端安装目录" type="input" tooltip="IAR上存放前端根目录">/usr/local/nginx/html</field>
|
|
32
|
-
<field name="isSubsystem" label="是否是子系统" type="select" options="false:主系统;true:子系统" required="true" tooltip="默认主系统">false</field>
|
|
33
32
|
${ variables }
|
|
34
33
|
</variables>
|
|
35
34
|
<config path="./${ name }/${ configFileName }.js" encoding="UTF-8"/>
|
|
@@ -2,14 +2,16 @@
|
|
|
2
2
|
#[install]
|
|
3
3
|
# chmod -R 755 .
|
|
4
4
|
# 拷贝前端工程文件到运行目录
|
|
5
|
-
if [ "
|
|
5
|
+
if [ "{{type}}" = "subsystem" ]; then
|
|
6
6
|
# 子系统执行逻辑
|
|
7
|
+
# 删除 tmp 的文件
|
|
7
8
|
ls -I tmp | xargs rm -rf
|
|
8
9
|
\cp -rf tmp/source/* ${workspace}/../
|
|
9
10
|
else
|
|
10
11
|
# 主系统执行逻辑
|
|
11
12
|
if [ -d "${workspace}/{{name}}" ]; then
|
|
12
13
|
cd "${workspace}/{{name}}"
|
|
14
|
+
# 查看文件名带有 "manifest." 文件,然后进行删除
|
|
13
15
|
ls | grep "manifest." | xargs rm -rf
|
|
14
16
|
rm -rf frame common static sysconfig.js index.html
|
|
15
17
|
cd -
|