grunt-contrib-connect
grunt-contrib-connect copied to clipboard
Livereload not injected with port 80
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'
]);
});
- grunt serve throws listen EACCES, I need to run it with sudo? why?
- watch works fine, console shows file changes detected
- when i set port to 3000 or 9000 it works fine, but 80 or 8080 just dont inject livereload ???
I know using ports below 1024 needs privelages, but why injection doesnt work?