忽略grunt连接端口选项 [英] grunt connect port option ignored
本文介绍了忽略grunt连接端口选项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我无法得到grunt连接来使用我在选项中指定的端口。
在我的grunt文件中有以下配置:
$ p $ connect:{
options:{
端口:9000,
主机名:'0.0.0.0'
},
测试:{
选项:{
端口:9001,
open:true ,
base:'test'
}
}
}
但是,当我运行 grunt connect:test
时,控制台引发返回以下内容:
home / peter / Projects / HammerHead2 on 1337端口。
解决方案
简单的解决方案
我安装了grunt-connect NOT grunt-contrib-connect
I am unable to get grunt connect to use the port that I specify in the options. In my grunt file is the following configuration
connect: {
options: {
port: 9000,
hostname: '0.0.0.0'
},
test: {
options: {
port: 9001,
open: true,
base: 'test'
}
}
}
However when I run grunt connect:test
the console raises returns the following
Opening server for /home/peter/Projects/HammerHead2 on port 1337.
解决方案
Simple solution
I had install grunt-connect NOT grunt-contrib-connect
这篇关于忽略grunt连接端口选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文