Closed BKeyport closed 3 years ago
set the existing restart config option
I don't know how to restart docker instance, but could do it.
I'm not finding a restart option anywhere, this is why I suggested.
in my module options showQR forceupdate restart debug
and in my doc
Ahh, I see it. I was looking for a checkbox, and it's a text field.
Not clear, do I need "PM2:mm" or just "mm"?
pm2:mm
OK, Thanks.
I had thought about auto detecting the pm2 instance. then it could be a dropdown
Actually, I think that would be best reconfigured - maybe set it up to be "command to restart MM"
So, the Pm2 user would be "pm2 restart MagicMirror" (by your script), or "pm2 restart mm" on my system.
but I can figure it out. pm2 info will give me the paths, and I know which one we are running on. I don't need the name. I can use the number
Okay. I'll shaddup and let you work. :)
Back to work on my test box..
pushed update to address this
Works.
Would it be possible to optionally restart upon saving config? I'm assuming the hard part would be determining how user started MM - PM2/Docker/or raw.
Two buttons, [save and restart] [save only]
Just a thought.