Run Gulp script with forever?

后端 未结 5 791
-上瘾入骨i
-上瘾入骨i 2021-02-19 05:44

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.

5条回答
  •  终归单人心
    2021-02-19 06:09

    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.

提交回复
热议问题