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
91f66e59
Commit
91f66e59
authored
Dec 03, 2024
by
王曜嵚 Wang Yaoqin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dev: 调试时生成配置文件
parent
7601aefb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
debug.post.ts
server/api/devops/v2/debug.post.ts
+4
-0
No files found.
server/api/devops/v2/debug.post.ts
View file @
91f66e59
...
...
@@ -53,6 +53,10 @@ export default defineEventHandler(async (event) => {
await
copyAndCreateNginxConfInDocker
(
username
)
LogUtil
.
print
(
username
,
`[progress] [[1;34mLoading[m] 启动 Nginx ...... \n`
)
await
docker
.
execContainerCommand
({
container
,
cmd
:
'nginx'
})
await
copyAndCreateServerPropertiesV2InDocker
(
username
)
await
copyAndCreateGatewayPropertiesV2InDocker
(
username
)
LogUtil
.
print
(
username
,
`[progress] [[1;34mInfo[m] 程序启动中...... \n`
)
try
{
await
docker
.
execContainerCommand
({
container
,
cmd
:
'pm2 delete backend'
})
...
...
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