dvajs / dva-cli

The dva command line utility.
964 stars 156 forks source link

dva 多项目并行 #79

Closed zhouchuanxiang closed 7 years ago

zhouchuanxiang commented 7 years ago

dva可以同时运行多个进程吗 两个项目同时用dva开发使用不同端口号,但是老是会报错 Caught exception: Error: listen EADDRINUSE :::8000 at Object.exports._errnoException (util.js:949:11) at exports._exceptionWithHostPort (util.js:972:20) at Server._listen2 (net.js:1253:14) at listen (net.js:1289:10) at Server.listen (net.js:1385:5) at /Users/workspace/xmall-mis/node_modules/dora/lib/index.js:99:12 at /Users/workspace/xmall-mis/node_modules/dora/node_modules/async/lib/async.js:718:13 at Immediate.iterate [as _onImmediate] (/Users/didi/workspace/xmall-mis/node_modules/dora/node_modules/async/lib/async.js:262:13) at tryOnImmediate (timers.js:543:15) at processImmediate [as _immediateCallback] (timers.js:523:5) AnyProxy is about to exit with code: 0 必须杀掉其中一个进程才可以,请大大们帮忙解答,万分感谢☺

sorrycc commented 7 years ago

PORT=8001 npm start

sorrycc commented 7 years ago

https://github.com/sorrycc/roadhog#环境变量

zhouchuanxiang commented 7 years ago

多谢大神指点 🌹