Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Atari's avatar

Use Gulp locally or inside vagrant box?

Which workflow do you use and why?

0 likes
12 replies
hasokeric's avatar

i use mine locally because i use PHPStorm and it has Gulp support in the IDE

1 like
codedungeon's avatar

You can use it in either place, all depends on what kind of tasks you are running. Since vagrant syncs or eery quickly it is not much of an issue.

1 like
ThomasRedstone's avatar

One major advantage of running it locally would be that you'll likely have a lot more resources than the virtual machine does, this is a problem I've had with composer on my Vagrant box, which has been fine if I ran it locally. But then keeping things separate feels cleaner, so really it's a tough one to call!

1 like
keevitaja's avatar

yeah, on a slow host gulp can be very slow in virtual environment...

but if you have problem with gulp, then composer will be even more slower.

1 like
thepsion5's avatar

Does PHPStorm's gulp support apply to windows as well, or just mac/linux?

Valorin's avatar

The only benefit I can see with running Gulp in vagrant is that you can avoid installing node.js and gulp on your local machine. This would be useful if you like to keep your system clean - or if you're like me and find the idea of node.js scary! (Gulp is pretty awesome though!)

Another downside of gulp in vagrant is that the notification plugins won't notify to your host, so you'll lose support for those - if you use them.

1 like
Atari's avatar

@Valorin What prompted me to ask the question was due to the gulp-notify plugin not working within vagrant, and Jeffrey seems to use it in a few casts, so I figured he must prefer working with gulp locally.

vengiss's avatar

Another upside of using node/gulp locally is that you can use it for non-VM dependent work. For example I usually work on static sites that don't require a virtual machine, it'd simply be an overkill, so running gulp locally allows me to work on it using a basic server to serve the files.

1 like
Atari's avatar

Thanks for all your answers.

I think I will install gulp locally so I can use gulp-notify. Also @vengiss thats an important point about static sites, such as a simple landing page, I wouldn't need to develop in a VM for that.

hasokeric's avatar

For those that are on Windows and are struggling with Vagrant + Gulp due to a VirtualBox bug... www.codeforest.net/install-gulp-on-windows-homestead

Please or to participate in this conversation.