Roots Discourse

Source only update when using prodcution flag

gulp

#1

When I run gulp watch and update some scss/js browser-sync updates the page but my changes are missing. The same goes for gulp. But when I run gulp --production it seems to work fine. None of the gulp tasks fail and everything looks like normal.

It seems to me that I have a production mode (instead of development) and Sage looks for files in the wrong place or something. Do I need to specify some variable or something? I tried to set WP_ENV to development, but no luck.

It’s not because I’m running gulp and gulp watch at the same time.

I’m running Sage 8.5.1 with a regular wordpress installation. I’m using Local by Flywheel to serve the files.

Thanks in advance!
Viktor


#2

Wierd. It seems to work if I switch from nginx to apache