develtip's avatar

Webpack watch-poll crashing the homestead

Anyone having problems with running webpack with watch-poll and homestead crashing randomly after a while? I can confirm that this is not project/code specific and happens all the time.

  • Laravel 5.4 (standard npm packages)
  • npm -v 5.4.1
  • node -v v8.4.0
  • Homestead (2.1.0) - 2GB RAM, 1GB swap
  • Vagrant 1.9.5
  • VirtualBox (5.0.40_Ubuntur115130)

Thanks for any suggestions.

0 likes
4 replies
Cronix's avatar
Cronix
Best Answer
Level 67

when I run with watch on homestead (ssh/cli), it pegs my host (mac) cpu at 100+%. So, I run in on the host instead of from within the vm. It drops cpu usage down to ~8%. I'm not sure why it does that, but it was turning my macbook into a lap warmer before changing it and only running via host.

develtip's avatar

Thanks for your reaction. Does anyone have an idea why does it behave this way on vms? I don't want to mess my localhost with build stuff.

Cronix's avatar

It won't mess your host with build stuff. Everything is still done in the laravel directory, which is also the homestead directory...

develtip's avatar

Well, what I meant was mainly losing control over build environment which should stay the same for whole team. (Main idea behind the homestead, right?) It opens a way for issues like.. "It's working on my localhost, but not on yours - let's spend a day to sort things out".

Please or to participate in this conversation.