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

Express server blocking other watch tasks #1

Open
jamescleary opened this issue Jul 20, 2013 · 4 comments
Open

Express server blocking other watch tasks #1

jamescleary opened this issue Jul 20, 2013 · 4 comments

Comments

@jamescleary
Copy link

I cloned this repo, and am running grunt with the configurations provided. Whenever I try to make a change to files that are meant to be watched (in this case, app/styles/main.scss) the files do not update properly. I think the server process is blocking the watch processes for some reason. When I run grunt watch the static files update as expected.

@blai
Copy link
Owner

blai commented Jul 21, 2013

This could be caused by your particular configuration for express. And my guess is you have something similar to the following:

express: {
      options: {
        port: 9000,
        hostname: '*'
      },
      livereload: {
        options: {
          server: path.resolve('./server'),
          livereload: true,
          bases: [path.resolve('./.tmp'), path.resolve(__dirname, yeomanConfig.app)]
        }
      }
}

Meanwhile, try setting serverreload to true for your server (even if your intention is not to change anything on the server side), that would start the server in a child process and will not block any other tasks.

@nicolazj
Copy link

have you tested the code on Mac?
i have the same problem with the sample code downloaded .

@jacksleight
Copy link

I have this issue as well, on OS X 10.9. Running grunt server does not update static assets when changed. Running grunt watch separately works fine (but there's still no live reloading).

@ehynds
Copy link

ehynds commented Dec 3, 2013

+1

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

5 participants