grunt connect port option ignored

末鹿安然 提交于 2020-01-11 10:37:11

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!