我正在我的 Windows 开发盒上运行 grunt/node/famo.us 的演示应用程序。当我使用 Chrome 访问 localhost:1377 时,在那台机器上一切正常。现在我正在尝试使用 ipaddress:1377 从同一网络上的另一个盒子访问该站点,但 Chrome 说它找不到它。我已经完全禁用了 Windows 防火墙,但它仍然不会出现。是否支持远程调用 grunt 站点?我做错了什么吗?
这是我的 gruntfile.js:
/*global module:false*/
/*Generated initially from grunt-init, heavily inspired by yo webapp*/
module.exports = function(grunt) {
'use strict';
// Time how long tasks take. Can help when optimizing build times
require('time-grunt')(grunt);
// Load grunt config
require('load-grunt-config')(grunt, {
init: true,
data: {
config: {
// Configurable paths
app: 'app',
dist: 'dist'
}
}
});
};