From 59654eb00436be5c1a1c8d80193f78a8b8f4d555 Mon Sep 17 00:00:00 2001 From: Dirk Krause Date: Mon, 24 Feb 2014 14:17:16 +0100 Subject: [PATCH] Added hostname To run vizicities on an external server (for example on Amazon EC2) you need to introduce the hostname which defaults to 'localhost'. To open the server for any IP address, one needs to enter either the external IP or '0.0.0.0'. --- Gruntfile.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Gruntfile.js b/Gruntfile.js index 8587e01..b2db88e 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -102,6 +102,8 @@ module.exports = function(grunt) { server: { options: { port: port, + // change hostname to 0.0.0.0 to open it up + hostname: 'localhost', base: '.', keepalive: true, debug: true @@ -157,4 +159,4 @@ module.exports = function(grunt) { grunt.registerTask('test', ['jshint', 'mocha_phantomjs']); grunt.task.run('notify_hooks'); -}; \ No newline at end of file +};