From f6548b6063d20611a278812c7d28e1e0b789d3cf Mon Sep 17 00:00:00 2001 From: Imran Chaudhry Date: Fri, 6 Feb 2015 12:48:07 +0000 Subject: [PATCH] Listen on all interfaces by default, grunt-cli dep * listen on all interfaces (0.0.0.0) by default * add helpful remark on how to enable that (saves hunting around to figure out how) * include grunt-cli in package.json for the grunt binary --- Gruntfile.js | 3 +++ package.json | 3 +++ 2 files changed, 6 insertions(+) diff --git a/Gruntfile.js b/Gruntfile.js index fe6d1ec7..2e9b6c5a 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -81,6 +81,9 @@ module.exports = function(grunt) { connect: { server: { options: { + // listen on all interfaces by default + // remove the "hostname" key to default to localhost: + hostname: null, port: 9100, base: '.', keepalive: true diff --git a/package.json b/package.json index 27ef9258..da66c5e4 100644 --- a/package.json +++ b/package.json @@ -27,5 +27,8 @@ "grunt-contrib-jasmine": "0.6.4", "karma": "0.12.16", "grunt-karma": "0.8.3" + }, + "dependencies": { + "grunt-cli": "^0.1.13" } }