Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Livereload not injected with port 80 #163

Open
ev45ive opened this issue Jan 27, 2015 · 1 comment
Open

Livereload not injected with port 80 #163

ev45ive opened this issue Jan 27, 2015 · 1 comment

Comments

@ev45ive
Copy link

ev45ive commented Jan 27, 2015

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
Copy link
Author

ev45ive commented Jan 27, 2015

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant