📜  gulp with pm2 - CSS 代码示例

📅  最后修改于: 2022-03-11 14:47:43.890000             🧑  作者: Mango

代码示例1
you can execute your gulp command via pm2 by defining it in the process file at your project root.

ecosystem.json
{
    "apps": [
        {
            "name": ,
            "script": "gulp"
        }
    ]
}
Then, from terminal, run $ pm2 start ecosystem.json. 
You can also define watch options at that process file. 
for more details copy this link
https://pm2.keymetrics.io/docs/usage/watch-and-restart/#auto-restart-apps-on-file-change