Skip to content

Instantly share code, notes, and snippets.

@shbatm
Created July 9, 2017 19:31
Show Gist options
  • Save shbatm/62f769bca0e0d6b48d86f722561e8de1 to your computer and use it in GitHub Desktop.
Save shbatm/62f769bca0e0d6b48d86f722561e8de1 to your computer and use it in GitHub Desktop.
PM2 Ecosystem File for Automatically Restarting the MM2 when config file changed
{
"apps":[
{
"name":"mm",
"script":"./mm.sh",
"cwd":"/home/pi",
"watch":[
"/home/pi/MagicMirror/config/config.js"
],
"watch_options":{
"followSymlinks":true
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment