问题
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.
回答1:
Simple solution
I had install grunt-connect NOT grunt-contrib-connect
来源:https://stackoverflow.com/questions/24765074/grunt-connect-port-option-ignored