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'.
0.1
Dirk Krause 2014-02-24 14:17:16 +01:00
rodzic 6d620b06d2
commit 59654eb004
1 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -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');
};
};