angular-fullstack/generator-angular-fullstack

Gulp + Browsersync on Vagrant VM does not work

Open

#2.202 aberto em 4 de set. de 2016

Ver no GitHub
 (3 comments) (0 reactions) (0 assignees)JavaScript (1.268 forks)batch import
Help Wantedinvestigate

Métricas do repositório

Stars
 (6.134 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

  • I understand that GitHub issues are not for tech support, but for questions specific to this generator, bug reports, and feature requests.
Item Version
generator-angular-fullstack 4.0.4
Node 5.12.0
npm 3.10.6
Operating System Ubuntu VM on windows 7 host
Item Answer
Transpiler Babel
Markup HTML
CSS SCSS
Router ui-router
Client Tests Jasmine a
DB SQL
Auth N

In the current setup i am able to see the development website on localhost:3000 in the host machine. However, i dont see the UI in localhost:3002 and the polling call in localhost:3001 is failing. I have forwarded the ports (3000,3001, 3002 and 9000) from VM to host machine.

After reading through broswer sync support here is what i found

https://github.com/BrowserSync/browser-sync/issues/318 https://gist.github.com/HPieters/88dd18e99c8925b2cabb

The browsersync and watch task need to be running on the same process for it to work through VM. Is there an alternative? i really like the generator and have been using for many projects. I had good success with livereload and grunt/gulp. While i like gulp and browsersync need to figure out a way to solve the shared ports..

Guia do colaborador