gruntjs / grunt-contrib-connect

Start a static web server.
http://gruntjs.com
MIT License
714 stars 146 forks source link

Livereload not injected with port 80 #163

Open ev45ive opened 9 years ago

ev45ive commented 9 years ago

I need my app to run localy on exact the same address and port as a production (I have my /etc/hosts/ fixed to use local adress), but when I change connect port to 80 or 8080 livereload script is not injected. Why is it so?

my gruntfile:

        watch: {
            options: {
                livereload: 35729
            },

            livereload: {
                files: ['<%= jshint.files %>'],
                options: {
                    livereload: 35729,
                },
            }
        },
        connect: {
            options: {
                port: 80,
                hostname: '0.0.0.0',
                //index: 'index.html',
                livereload: 35729,
                bases: [__dirname],
            },

    grunt.registerTask('serve', function (target) {
        grunt.task.run([
            'connect',
            'watch:livereload'
            ]);
    });
  1. grunt serve throws listen EACCES, I need to run it with sudo? why?
  2. watch works fine, console shows file changes detected
  3. when i set port to 3000 or 9000 it works fine, but 80 or 8080 just dont inject livereload ???
ev45ive commented 9 years ago

I know using ports below 1024 needs privelages, but why injection doesnt work?