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.

aynber
  • 22,380
  • 8
  • 50
  • 63
Peter Saxton
  • 4,466
  • 5
  • 33
  • 51

1 Answers1

7

Simple solution

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

Peter Saxton
  • 4,466
  • 5
  • 33
  • 51
  • +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. – OoDeLally Sep 06 '15 at 15:20