From 7a765fa02586824851623653879c4a3d55157a9f Mon Sep 17 00:00:00 2001 From: James Allen Date: Tue, 19 Aug 2014 15:10:50 +0100 Subject: [PATCH] Run grunt install inside service directory --- server-ce/Gruntfile.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server-ce/Gruntfile.coffee b/server-ce/Gruntfile.coffee index d17eeaac35..38885c6cc3 100644 --- a/server-ce/Gruntfile.coffee +++ b/server-ce/Gruntfile.coffee @@ -241,7 +241,8 @@ module.exports = (grunt) -> grunt.log.writeln "Config file already exists. Skipping." callback() - runGruntInstall: (dir, callback = (error) ->) -> + runGruntInstall: (service, callback = (error) ->) -> + dir = service.name proc = spawn "grunt", ["install"], stdio: "inherit", cwd: dir proc.on "close", () -> callback()