Answers for "check if run via pm2"

3

pm2 show command

pm2 describe <id>
Posted by: Guest on November-24-2020
0

pm2 start

pm2.start({
    name: `App`,
    script: `index.js`,
    out_file: `app.strout.log`,
    error_file: `app.strerr.log`
}, function (err, apps) {
    if (err) {
        console.log(err)
    }
    console.log("done")
})
Posted by: Guest on January-11-2022

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language