3 Star 21 Fork 7

Big0range/vane

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
dev.js 859 Bytes
一键复制 编辑 原始数据 按行查看 历史
Big0range 提交于 2023-06-20 11:39 . feat: 🎸 init
const { exec } = require('child_process');
const fs = require('fs/promises');
const path = require('path');
const watchTsChild = exec('pnpm dev:server');
// 启动服务端
watchTsChild.stdout.on('data', data => {
console.log(`\x1b[34mserver stdout:\x1b[0m\n${data}`);
});
watchTsChild.stderr.on('data', data => {
console.error(`\x1b[31mserver stderr:\x1b[0m\n${data}`);
});
// 启动web端
const watchNodeChild = exec('pnpm dev:client');
watchNodeChild.stdout.on('data', data => {
console.log(`\x1b[32mclient stdout:\x1b[0m\n${data}`);
});
watchNodeChild.stderr.on('data', data => {
console.log(`\x1b[31mclient stderr:\x1b[0m\n${data}`);
});
// change master to master_host='172.16.238.2', master_user='slave', master_password='vaneSalve888??', master_port=3307, master_log_file='mysql-bin.000013', master_log_pos=21774, master_connect_retry=30;
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/li_mei_chao/vane.git
[email protected]:li_mei_chao/vane.git
li_mei_chao
vane
vane
master

搜索帮助