From 8ed522774cb0a4185cfd619ec7531fe151a74e38 Mon Sep 17 00:00:00 2001 From: James Allen Date: Wed, 12 Feb 2014 12:15:47 +0000 Subject: [PATCH] Fix up some Gruntfile errors --- Gruntfile.coffee | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Gruntfile.coffee b/Gruntfile.coffee index bb35b07b5c..62e45a1a99 100644 --- a/Gruntfile.coffee +++ b/Gruntfile.coffee @@ -1,6 +1,7 @@ fs = require "fs" spawn = require("child_process").spawn rimraf = require "rimraf" +Path = require "path" SERVICES = [{ name: "web" @@ -63,7 +64,7 @@ module.exports = (grunt) -> grunt.registerTask "update:#{service.name}", "Checkout and update the #{service.name} service", () -> done = @async() Helpers.updateService(service.name, done) - grunt.registerTask "run:#{service.name}", "Run the ShareLaTeX #{service.name} service", ["bunyan", "execute:web"] + grunt.registerTask "run:#{service.name}", "Run the ShareLaTeX #{service.name} service", ["bunyan", "execute:#{service.name}"] grunt.registerTask 'install:all', "Download and set up all ShareLaTeX services", ("install:#{service.name}" for service in SERVICES) grunt.registerTask 'install', 'install:all' @@ -132,5 +133,5 @@ Helpers = return callback(error) if error? for file in fs.readdirSync("config-local") unless file == ".git" - fs.symlinkSync("config-local/#{file}", "config/#{file}") + fs.symlinkSync(Path.resolve("config-local/#{file}"), "config/#{file}") callback()