4
Parse-dashboard'u pm2 kullanarak nasıl kalıcı olarak çalıştırabilirim?pm2 kullanarak ayrıştırma kontrol panelini başlatma
dashboard.json
{
"apps" : [{
"name" : "parse-dash”,
"script" : "/usr/local/bin/parse-dashboard”,
"watch" : true,
"merge_logs" : true,
"cwd" : "/home/parse",
"args" : "--config dashboard-config.json"
}]
}
ve başlangıç PM2: Aşağıdaki denedi
pm2 start dashboard.json
ama aşağıdaki hatayı alıyorum:
evalmachine.<anonymous>:3
"name" : "parse-dash”,
^^^^^^^^^^^^^^^^^^
SyntaxError: Unexpected token ILLEGAL
at Object.exports.runInThisContext (vm.js:53:16)
at Object.module.exports.parseConfig (/usr/local/lib/node_modules/pm2/lib/Utility.js:145:17)
at Object.CLI._startJson (/usr/local/lib/node_modules/pm2/lib/CLI.js:302:23)
at Object.CLI.start (/usr/local/lib/node_modules/pm2/lib/CLI.js:98:9)
at /usr/local/lib/node_modules/pm2/bin/pm2:249:13
at /usr/local/lib/node_modules/pm2/node_modules/async/lib/async.js:181:20
at replenish (/usr/local/lib/node_modules/pm2/node_modules/async/lib/async.js:319:21)
at /usr/local/lib/node_modules/pm2/node_modules/async/lib/async.js:330:15
at Object.async.forEachLimit.async.eachLimit (/usr/local/lib/node_modules/pm2/node_modules/async/lib/async.js:220:35)
at Command.<anonymous> (/usr/local/lib/node_modules/pm2/bin/pm2:248:13)
Ben aşina değilim node_modules ile ve doğru klasöre işaret ettiğimden emin değilim.
Teşekkür ederiz. Normal bir kod düzenleyicisi yerine Notes.app kullanıyorum. – user2747220