1 Star 1 Fork 0

周俊/myServer

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
nw.js 386 Bytes
一键复制 编辑 原始数据 按行查看 历史
zhoujun 提交于 2023-10-09 16:42 +08:00 . 修改
let path = require('path');
let Service = require('node-windows').Service;
let svc = new Service({
name:'api server', // 服务名称
description: 'api server', // 服务描述
script: path.resolve('./server.js'),// 项目入口文件
nodeOptions: [
'--harmony',
'--max_old_space_size=4096'
]
});
svc.on('install',function(){
svc.start();
});
svc.install();
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/cainiao_web/my-server.git
git@gitee.com:cainiao_web/my-server.git
cainiao_web
my-server
myServer
master

搜索帮助