永远运行 Gulp 脚本? [英] Run Gulp script with forever?

查看:20
本文介绍了永远运行 Gulp 脚本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以使用 forever 运行 Gulp 脚本?

Is it possible to run Gulp script with forever?

我有想要作为守护进程运行的 Gulp 脚本,所以我可以启动/停止/列出它.

I have Gulp script that would like to run as a daemon, so I could start / stop / list it.

推荐答案

好的,所以我通过将 gulp 二进制文件从/usr/bin 链接到我的本地文件夹然后简单地在本地运行命令来解决它.像这样:

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆