【发布时间】:2014-07-15 18:01:46
【问题描述】:
我无法让 grunt connect 使用我在选项中指定的端口。 在我的 grunt 文件中是以下配置
connect: {
options: {
port: 9000,
hostname: '0.0.0.0'
},
test: {
options: {
port: 9001,
open: true,
base: 'test'
}
}
}
但是,当我运行 grunt connect:test 时,控制台会返回以下内容
在端口 1337 上为 /home/peter/Projects/HammerHead2 打开服务器。
【问题讨论】:
标签: javascript gruntjs connect