Commit ca8b33c2 authored by 王曜嵚 Wang Yaoqin's avatar 王曜嵚 Wang Yaoqin

dev: 增加java参数

parent 2ed5542b
...@@ -27,8 +27,8 @@ export default defineEventHandler(async (event) => { ...@@ -27,8 +27,8 @@ export default defineEventHandler(async (event) => {
await copyAndCreateNginxConfInDocker(username) await copyAndCreateNginxConfInDocker(username)
await docker.execContainerCommand({ container, cmd: 'nginx'}) await docker.execContainerCommand({ container, cmd: 'nginx'})
await docker.execContainerCommand({ container, cmd: 'pm2 start --name gateway --no-autorestart java -- -Xms256m -Xmx256m -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 gateway --no-autorestart java -- -Xms256m -Xmx256m -XX:+UseG1GC --add-opens java.base/sun.util.locale.provider=ALL-UNNAMED -DbootUserName=root -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 -- -Xms256m -Xmx256m -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 backend --no-autorestart java -- -Xms256m -Xmx256m -XX:+UseG1GC -DVALIDATE_XML_ENABLED=false --add-opens java.base/sun.util.locale.provider=ALL-UNNAMED --add-opens java.desktop/sun.awt=ALL-UNNAMED -DbootUserName=root -jar logwire-backend-starter.jar`, dir: '/var/logwire-backend/build-output/backend', quiet: true })
LogUtil.printInfo(username, `程序运行中......`) LogUtil.printInfo(username, `程序运行中......`)
LogUtil.printInfo(username, `请代理后端请求到 <strong>${HOST}:${port}</strong> 上`) LogUtil.printInfo(username, `请代理后端请求到 <strong>${HOST}:${port}</strong> 上`)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment