永远运行Gulp脚本? [英] Run Gulp script with forever?
本文介绍了永远运行Gulp脚本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以通过永久运行Gulp脚本?
我有一个想要作为守护进程运行的Gulp脚本,所以我可以开始/停止/列出它。
解决方案好的,所以我通过将来自/ usr / bin的gulp二进制文件链接到本地文件夹,然后在本地运行该命令来解决它。像这样:
ln -s / usr / bin / gulp ./gulp
永久开始gulp服务
这些命令可能会有所不同,但我希望您能明白它的真谛。
Is it possible to run Gulp script with forever?
I have Gulp script that would like to run as a daemon, so I could start / stop / list it.
解决方案
Okay, so I solved it by linking the gulp binary from /usr/bin to my local folder and then simply running the command locally. Like so:
ln -s /usr/bin/gulp ./gulp
forever start gulp serve
The commands may vary for you but I hope you get the gist of it.
这篇关于永远运行Gulp脚本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文