grunt-reload
grunt-reload copied to clipboard
Not working on my Archlinux
I spend several hours on it and can't make it work..
Preciously I use my own plugin which use WebSockets to reload pages.
But with grunt-reload
I got this:
➤➤ grunt --version
grunt-cli v0.1.6
grunt v0.4.0
➤➤ grunt dev
Running "reload" task
Proxying http://localhost:80/
reload server running at http://localhost:6001
Running "watch" task
Waiting...
But there's not any response on http://localhost
or http://localhost:8000
.
I switched Nginx down while using this.
I wrote the configs just like that in the README file.
Here's my Gruntfile.coffee
:
module.exports = (grunt) ->
grunt.loadNpmTasks "grunt-contrib-coffee"
grunt.loadNpmTasks 'grunt-contrib-watch'
grunt.loadNpmTasks 'grunt-contrib-jade'
grunt.loadNpmTasks 'grunt-contrib-stylus'
grunt.loadNpmTasks 'grunt-reload'
grunt.initConfig
coffee:
compile:
files:
"page/main.js": "action/main.coffee"
options:
bare: yes
watch: yes
jade:
compile:
options:
data:
debug: no
pretty: yes
files:
"page/index.html": "layout/index.jade"
stylus:
compile:
options: {}
files:
"page/page.css": "layout/page.styl"
reload:
port: 6001
proxy:
host: "localhost"
watch:
coffee:
files: "action/*.coffee"
tasks: "coffee"
stylus:
files: "layout/*styl"
tasks: "stylus"
jade:
files: "layout/*.jade"
tasks: "jade"
reload:
files: "page/*"
tasks: "reload"
grunt.registerTask "dev", ["reload", "watch"]