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
590d9caa
Commit
590d9caa
authored
Jul 30, 2024
by
王曜嵚 Wang Yaoqin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dev: 调整 v2 后端 java 内存大小
parent
c7368e22
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
execute.post.ts
server/api/devops/v2/execute.post.ts
+2
-2
No files found.
server/api/devops/v2/execute.post.ts
View file @
590d9caa
...
...
@@ -27,8 +27,8 @@ export default defineEventHandler(async (event) => {
await
copyAndCreateNginxConfInDocker
(
username
)
await
docker
.
execContainerCommand
({
container
,
cmd
:
'nginx'
})
await
docker
.
execContainerCommand
({
container
,
cmd
:
'pm2 start --name gateway --no-autorestart java -- -Xms
128m -Xmx128
m -XX:+UseG1GC --add-opens java.base/sun.util.locale.provider=ALL-UNNAMED -jar logwire-gateway-starter.jar'
,
dir
:
'/var/logwire-backend/build-output/gateway'
,
quiet
:
true
})
await
docker
.
execContainerCommand
({
container
,
cmd
:
`pm2 start --name backend --no-autorestart java -- -Xms
128m -Xmx128
m -XX:+UseG1GC -DVALIDATE_XML_ENABLED=false --add-opens java.base/sun.util.locale.provider=ALL-UNNAMED --add-opens java.desktop/sun.awt=ALL-UNNAMED -jar logwire-backend-starter.jar`
,
dir
:
'/var/logwire-backend/build-output/backend'
,
quiet
:
true
})
await
docker
.
execContainerCommand
({
container
,
cmd
:
'pm2 start --name gateway --no-autorestart java -- -Xms
256m -Xmx256
m -XX:+UseG1GC --add-opens java.base/sun.util.locale.provider=ALL-UNNAMED -jar logwire-gateway-starter.jar'
,
dir
:
'/var/logwire-backend/build-output/gateway'
,
quiet
:
true
})
await
docker
.
execContainerCommand
({
container
,
cmd
:
`pm2 start --name backend --no-autorestart java -- -Xms
256m -Xmx256
m -XX:+UseG1GC -DVALIDATE_XML_ENABLED=false --add-opens java.base/sun.util.locale.provider=ALL-UNNAMED --add-opens java.desktop/sun.awt=ALL-UNNAMED -jar logwire-backend-starter.jar`
,
dir
:
'/var/logwire-backend/build-output/backend'
,
quiet
:
true
})
LogUtil
.
printInfo
(
username
,
`程序运行中......`
)
LogUtil
.
printInfo
(
username
,
`请代理后端请求到 <strong>
${
HOST
}
:
${
port
}
</strong> 上`
)
...
...
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