在詹金斯上运行多个ng serve命令

时间:2019-08-09 06:42:13

标签: node.js linux angular jenkins

我尝试通过jenkins在两个端口上完成相同的角度项目,但只有最后一个应用程序成功。当我grep进程时,我算没有找到第一个。

但是当我在终端中运行两个命令时,都可能会同时出现。

有人可以为此建议吗?

BUILD_ID=dontKillMe nohup ng serve --host 0.0.0.0 --port 4201 --base-href /test/ >> test.log 2>&1 &

sleep 1

BUILD_ID=dontKillMe nohup ng serve --host 0.0.0.0 --port 4200 --base-href /finance/ >> finance.log 2>&1 &

0 个答案:

没有答案