GitBucket
4.6.0
Toggle navigation
Sign in
Files
Branches
1
Tags
Issues
Pull Requests
Labels
Milestones
Wiki
08335
/
hivui-platform-template
hivui平台项目模板
Browse code
add
master
1 parent
49bf807
commit
a552ebff4040c66e8e18ad87ddb6b9c531e8e689
caibinghong
authored
on 3 Jun 2021
Showing
2 changed files
build/bin/pm2.js
processes.json
Ignore Space
Show notes
View
build/bin/pm2.js
0 → 100644
#!/usr/bin/env node /* // 本目录 是管理node 服务器,使用pm2 // 通过package.json 里script 命令pm2 会调用 processes.json 配置 // 然后 processes.json 配置 里 script选项会找到 这个文件执行 'use strict'; */ function start(){ // require('vite/dist/node/cli'); } // start(); require('vite/bin/vite.js');
Ignore Space
Show notes
View
processes.json
0 → 100644
{ "apps": [ { "name": "vite-work", "cwd": "./", "script": "./build/bin/pm2.js", "log_date_format": "YYYY-MM-DD HH:mm:ss", "error_file": "./hi-vui-logs/node-app.stderr.log", "out_file": "./hi-vui-logs/node-app.stdout.log", "pid_file": "./hi-vui-logs/node-geo-api.pid", "instances": 6, "min_uptime": "200s", "max_restarts": 10, "max_memory_restart": "1M", "cron_restart": "1 0 * * *", "watch": false, "merge_logs": true, "exec_interpreter": "node", "exec_mode": "fork", "autorestart": false, "vizion": false } ] }
Show line notes below