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
e3cf3d9f
Commit
e3cf3d9f
authored
Nov 08, 2024
by
王曜嵚 Wang Yaoqin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dev: 删除旧日志
parent
830aaca7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
9 deletions
+6
-9
docker.ts
server/utils/docker.ts
+6
-9
No files found.
server/utils/docker.ts
View file @
e3cf3d9f
...
...
@@ -155,15 +155,12 @@ class Docker {
}
}
async
preStartSystem
({
container
,
username
,
platform
}:
{
container
:
Dockerode
.
Container
,
username
:
string
,
platform
:
'v1'
|
'v2'
})
{
try
{
await
this
.
execContainerCommand
({
container
,
cmd
:
'rm /root/.pm2/logs/backend-out.log'
})
await
this
.
execContainerCommand
({
container
,
cmd
:
'rm /root/.pm2/logs/backend-error.log'
})
await
this
.
execContainerCommand
({
container
,
cmd
:
'rm /root/.pm2/logs/gateway-out.log'
})
await
this
.
execContainerCommand
({
container
,
cmd
:
'rm /root/.pm2/logs/gateway-out.log'
})
await
this
.
execContainerCommand
({
container
,
cmd
:
'rm /root/.pm2/logs/platform-out.log'
})
await
this
.
execContainerCommand
({
container
,
cmd
:
'rm /root/.pm2/logs/platform-out.log'
})
}
catch
(
err
)
{
}
await
this
.
execContainerCommand
({
container
,
cmd
:
'rm -f /root/.pm2/logs/backend-out.log'
})
await
this
.
execContainerCommand
({
container
,
cmd
:
'rm -f /root/.pm2/logs/backend-error.log'
})
await
this
.
execContainerCommand
({
container
,
cmd
:
'rm -f /root/.pm2/logs/gateway-out.log'
})
await
this
.
execContainerCommand
({
container
,
cmd
:
'rm -f /root/.pm2/logs/gateway-error.log'
})
await
this
.
execContainerCommand
({
container
,
cmd
:
'rm -f /root/.pm2/logs/platform-out.log'
})
await
this
.
execContainerCommand
({
container
,
cmd
:
'rm -f /root/.pm2/logs/platform-error.log'
})
try
{
await
this
.
execContainerCommand
({
container
,
cmd
:
'pm2 delete backend'
})
}
catch
(
err
)
{}
try
{
await
this
.
execContainerCommand
({
container
,
cmd
:
'pm2 delete gateway'
})
}
catch
(
err
)
{}
try
{
await
this
.
execContainerCommand
({
container
,
cmd
:
'pm2 delete platform'
})
}
catch
(
err
)
{}
...
...
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