Run Gulp script with forever?

后端 未结 5 787
-上瘾入骨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:05

    Install pm2

    $ npm install pm2 -g
    

    Now start gulp

    pm2 start gulp serve
    

    You can view running services using pm2 l and Note: sometimes you can see your services running on next to port you specified example: http://localhost:3001 instead of http://localhost:3000

提交回复
热议问题