grunt connect port option ignored
Asked Answered
E

1

3

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.

Epidermis answered 15/7, 2014 at 18:1 Comment(0)
E
7

Simple solution

I had install grunt-connect NOT grunt-contrib-connect

Epidermis answered 15/7, 2014 at 18:7 Comment(1)
+1 billions. That was my mistake too. Spent 2 days desperately trying every gruntfile-configuration I could find on the internet... Problem is, grunt doesnt even complains, and happily ignores the config. Thank you sir.Stormystorting

© 2022 - 2024 — McMap. All rights reserved.