Running "grunt serve" on a VM shows no errors and according to command line dialogue appears to be serving as expected on 0.0.0.0:9000/#/ except that no browser (chrome) page is ever opened, and navigating to that address shows a 'Could not connect to 0.0.0.0:9000" error page.
Days of searching for a fix have been fruitless, any help would be greatly appreciated.
I am running an Ubuntu Precise32 box with Vagrant and provisioning via Puppet to support development using Laravel 4 + AngularJS. Installed packages include:
php apache composer mysql phpmyadmin ruby nodejs sass compass yeoman generator-angular
Have you configured forwarding port 9000 in Vagrantfile?
config.vm.network :forwarded_port, guest: 9000, host: 9000
config.vm.network :forwarded_port, guest: 35729, host: 35729
The first one is for grunt serve
and the second forwarding is for live-reload in Grunt.
I had the same error as hiwaylon commented on accepted answer. What solved for me was running:
sed -i 's/localhost/0.0.0.0/' Gruntfile.js
before "grunt serve"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With