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
289f8281
Commit
289f8281
authored
May 07, 2024
by
王曜嵚 Wang Yaoqin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dev: 切换环境时发送 Socket 通知状态变更
parent
8c61c719
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
docker.ts
server/utils/docker.ts
+2
-2
No files found.
server/utils/docker.ts
View file @
289f8281
...
...
@@ -170,11 +170,11 @@ class Docker {
if
(
platform
===
'v1'
)
{
await
this
.
switchJavaVersion
({
container
,
username
,
version
:
8
})
const
statusV2
=
(
await
getPgTableData
(
'v2'
,
username
))?.
status
if
(
statusV2
)
setPgTableData
(
'v2'
,
username
,
'status'
,
'compiled'
)
// 如果系统在运行,回退到已创建的状态
if
(
statusV2
)
changeProjectStatus
(
'v2'
,
username
,
'status'
,
'compiled'
)
// 如果系统在运行,回退到已创建的状态
}
else
{
await
this
.
switchJavaVersion
({
container
,
username
,
version
:
17
})
const
statusV1
=
(
await
getPgTableData
(
'v1'
,
username
))?.
status
if
(
statusV1
)
setPgTableData
(
'v1'
,
username
,
'status'
,
'compiled'
)
// 如果系统在运行,回退到已创建的状态
if
(
statusV1
)
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