A
A
alex5e2016-08-25 12:11:31
Grunt.js
alex5e, 2016-08-25 12:11:31

How to get grunt LiveReload on vagrant?

Can you tell me how to configure livereload on vagrant?

watch: {
            ...
            less: {
                files: ['assets/less/**/*.less'],
                tasks: ['less'],
                options: {
                    livereload: 1334
                }
            },
            ....
        }

<script src="//localhost:1334/livereload.js"></script>

When loading the page wildly slows down, and chrome gives a timeout error, livereload ess-but does not work.
When specifying an IP or virtual host instead of localhost, the result is the same.
There is also a problem: when I start grunt watch with livereload on some port, for example 1334, then when the watch-ra is restarted, this port is already busy

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question