0
我有一個簡單的命令運行時正常工作:如何用參數啓動pm2?
parse-dashboard --config /home/ubuntu/dash/config.json
然而,PM2運行它時,它不工作:
pm2 start parse-dashboard -- --config=/home/ubuntu/dash/config.json
看日誌,我得到的錯誤: node: bad option: --config=/home/ubuntu/dash/config.json
我在做什麼錯?
是不是可以通過CLI來做到這一點?我真的不想通過json文件來做到這一點。 – az2902
查看這些文檔以通過CLI執行此操作: https://futurestud.io/tutorials/pm2-how-to-start-your-app-with-node-js-v8-arguments – cody