foundation-cli icon indicating copy to clipboard operation
foundation-cli copied to clipboard

'Foundation watch' not working

Open tokelove opened this issue 9 years ago • 3 comments

Created a project with foundation new Built the project with foundation build 'foundation watch' runs with no errors, but localhost:8080 shows page cannot be displayed.

Tried at localhost:8000 with the same issue.

tokelove avatar Jun 19 '16 19:06 tokelove

I have the same issue. Any leads?

pkanane avatar Jun 30 '16 23:06 pkanane

Me too!

labanino avatar Jul 19 '16 20:07 labanino

EDIT: Also try setting the online option to true. Makes for faster startup after some research.

Crazy to think this may be the cause, but i modified my gulpfile according to the browser-sync docs:

// Around line 91
// Start a server with LiveReload to preview the site in
function server(done) {
  var browserSync = browser.create();
  browserSync.init({
    server: 'dist',
    online: true
  });
  done();
}

still thought nothing was happening, and then like a minute later while I was browsing, the foundation email opened. I can't confirm if the fix was the code I wrote, or if it just takes an insane amount of time, but I would recommend the maintainers add a message about the potential wait time when the script starts, or perhaps an indication of progress of some sort?

Anyway, I hope this helps anyone else who visits this thread hoping this repo isn't dead.

driannaude avatar Aug 25 '16 03:08 driannaude