在新的过程中产卵Grunt任务 [英] Spawn Grunt tasks in new process
问题描述
我一直在使用 grunt-execute 启动我的app.js节点服务器。
I have been using grunt-execute to launch my app.js node server.
我也有一个grunt watch任务。
I also have a grunt watch task.
这些任务都没有结束,他们只是坐着在那里等着。问题是我需要启动它们两个。
Both of these tasks don't end, they just sit there waiting. The problem is that I need to start both of them.
我可以在单独的进程或线程中启动一个(我不知道正确的术语),因此它们可以同时运行吗?
Can I start one in a separate process, or thread (I don't know the correct term) so they can both run at the same time?
我试过 grunt-spawn 和 grunt-shell-spawn ,但不要实际上启动一个单独的东西,所以第二个任务永远不会运行。如果我从手表开始,服务器永远不会执行,如果我从服务器开始,手表永远不会运行。
I have tried grunt-spawn and grunt-shell-spawn but the don't actually launch a separate thing, so the second task never gets run. If I start with the watch, the server never gets executed, if I start with the server, the watch never runs.
谢谢!
推荐答案
grunt-concurrent 启用你一次运行多个阻塞任务!
grunt-concurrent enables you to run multiple blocking tasks at once!
这篇关于在新的过程中产卵Grunt任务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!