Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nuxt-backend-helper
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王曜嵚 Wang Yaoqin
nuxt-backend-helper
Commits
c7368e22
Commit
c7368e22
authored
Jul 16, 2024
by
王曜嵚 Wang Yaoqin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dev: v1 打包时移动目录,而不是压缩目录
parent
1c4c577a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
compile.post.ts
server/api/devops/v1/compile.post.ts
+6
-3
No files found.
server/api/devops/v1/compile.post.ts
View file @
c7368e22
...
@@ -31,15 +31,18 @@ export default defineEventHandler(async (event) => {
...
@@ -31,15 +31,18 @@ export default defineEventHandler(async (event) => {
const
version
=
/<logwire-starter
\.
version>
(
.*
?)
<
\/
logwire-starter
\.
version>/
.
exec
(
pomVersionStr
)?.[
1
]
const
version
=
/<logwire-starter
\.
version>
(
.*
?)
<
\/
logwire-starter
\.
version>/
.
exec
(
pomVersionStr
)?.[
1
]
const
versionWeb
=
/<logwire-libs
\.
version>
(
.*
?)
<
\/
logwire-libs
\.
version>/
.
exec
(
pomVersionStr
)?.[
1
]
const
versionWeb
=
/<logwire-libs
\.
version>
(
.*
?)
<
\/
logwire-libs
\.
version>/
.
exec
(
pomVersionStr
)?.[
1
]
await
docker
.
execContainerCommand
({
container
,
cmd
:
'tar -zvcf ../tenants.tar.gz ./projects/demo'
,
dir
:
'/var/logwire-platform/dist'
})
try
{
await
docker
.
execContainerCommand
({
container
,
cmd
:
'mv -bf ./projects ../tenants_config'
,
dir
:
'/var/logwire-platform/dist'
})
}
catch
(
err
)
{}
await
docker
.
execContainerCommand
({
container
,
cmd
:
'rm -rf dist'
,
dir
:
'/var/logwire-platform'
})
await
docker
.
execContainerCommand
({
container
,
cmd
:
'rm -rf dist'
,
dir
:
'/var/logwire-platform'
})
await
docker
.
execContainerCommand
({
container
,
cmd
:
'mkdir -p dist/lib'
,
dir
:
'/var/logwire-platform'
})
await
docker
.
execContainerCommand
({
container
,
cmd
:
'mkdir -p dist/lib'
,
dir
:
'/var/logwire-platform'
})
await
docker
.
execContainerCommand
({
container
,
cmd
:
'mkdir -p dist/config'
,
dir
:
'/var/logwire-platform'
})
await
docker
.
execContainerCommand
({
container
,
cmd
:
'mkdir -p dist/config'
,
dir
:
'/var/logwire-platform'
})
await
docker
.
execContainerCommand
({
container
,
cmd
:
'mkdir -p dist/products'
,
dir
:
'/var/logwire-platform'
})
await
docker
.
execContainerCommand
({
container
,
cmd
:
'mkdir -p dist/products'
,
dir
:
'/var/logwire-platform'
})
await
docker
.
execContainerCommand
({
container
,
cmd
:
`cp logwire-build/logwire-server/logwire-starter/target/logwire-starter-
${
version
}
.jar dist/`
,
dir
:
'/var/logwire-platform'
})
await
docker
.
execContainerCommand
({
container
,
cmd
:
`cp logwire-build/logwire-server/logwire-starter/target/logwire-starter-
${
version
}
.jar dist/`
,
dir
:
'/var/logwire-platform'
})
await
docker
.
execContainerCommand
({
container
,
cmd
:
`cp logwire-build/logwire-server/logwire-libs/logwire-web/target/logwire-web-
${
versionWeb
}
.jar dist/lib/`
,
dir
:
'/var/logwire-platform'
})
await
docker
.
execContainerCommand
({
container
,
cmd
:
`cp logwire-build/logwire-server/logwire-libs/logwire-web/target/logwire-web-
${
versionWeb
}
.jar dist/lib/`
,
dir
:
'/var/logwire-platform'
})
await
docker
.
execContainerCommand
({
container
,
cmd
:
'tar -zxvf ../tenants.tar.gz'
,
dir
:
'/var/logwire-platform/dist'
})
try
{
await
docker
.
execContainerCommand
({
container
,
cmd
:
'rm ../tenants.tar.gz'
,
dir
:
'/var/logwire-platform/dist'
})
await
docker
.
execContainerCommand
({
container
,
cmd
:
'mv -f ../tenants_config ./projects'
,
dir
:
'/var/logwire-platform/dist'
})
}
catch
(
err
)
{}
await
copyAndCreateServerPropertiesV1InDocker
(
username
)
await
copyAndCreateServerPropertiesV1InDocker
(
username
)
LogUtil
.
printInfo
(
username
,
'编译完成'
)
LogUtil
.
printInfo
(
username
,
'编译完成'
)
await
changeProjectStatus
(
'v1'
,
username
,
'status'
,
'compiled'
)
await
changeProjectStatus
(
'v1'
,
username
,
'status'
,
'compiled'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment