Pet*_*ton 2 javascript connect gruntjs
我无法使用grunt connect来使用我在选项中指定的端口.在我的grunt文件中是以下配置
connect: {
options: {
port: 9000,
hostname: '0.0.0.0'
},
test: {
options: {
port: 9001,
open: true,
base: 'test'
}
}
}
Run Code Online (Sandbox Code Playgroud)
但是当我运行grunt connect:test
控制台时,引发返回以下内容
在端口1337上打开/ home/peter/Projects/HammerHead2的服务器.