From 16499d2fb81a30d8e678a8fc3d5cb2e81a726abe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodrigo=20Ram=C3=ADrez=20Norambuena?= Date: Wed, 1 Mar 2017 22:12:09 -0300 Subject: [PATCH] Use JSON format for configuration pm2 control process file on installer file. Also, add to validate format on Gruntfile --- Gruntfile.js | 3 ++- installers/pm2_MagicMirror.json | 8 ++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index 5aa68811..97cb1902 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -24,7 +24,8 @@ module.exports = function(grunt) { }, jsonlint: { main: { - src: ["package.json", ".eslintrc.json", ".stylelintrc", "translations/*.json", "modules/default/*/translations/*.json"], + src: ["package.json", ".eslintrc.json", ".stylelintrc", "translations/*.json", + "modules/default/*/translations/*.json", "installers/pm2_MagicMirror.json"], options: { reporter: "jshint" } diff --git a/installers/pm2_MagicMirror.json b/installers/pm2_MagicMirror.json index 3f0b27bd..3f905020 100644 --- a/installers/pm2_MagicMirror.json +++ b/installers/pm2_MagicMirror.json @@ -1,7 +1,7 @@ { - apps : [{ - name : "MagicMirror", - script : "/home/pi/MagicMirror/installers/mm.sh", - watch : ["/home/pi/MagicMirror/config/config.js"] + "apps" : [{ + "name" : "MagicMirror", + "script" : "/home/pi/MagicMirror/installers/mm.sh", + "watch" : ["/home/pi/MagicMirror/config/config.js"] }] }