Roots TRIAL - all good
I managed to set up my local development environment on Windows WSL with Trellis, Bedrock, Sage and deploy roots-example-project.test locally. I can access local URL roots-example-project.test.
I also managed to deploy roots-example-project to a real droplet at Digital Ocean, it worked well too.
Changing Test Project
Now, I kind of want to see how do I change stuff in my theme and see the results in my browser. For example, I want all links to become pink. So, I modified two .CSS files at roots-example-project folder:
_global.scss
Now I want to “reload the page” and and see the change . What do I need to do?
So far I tried to delete cache folder, destroyed and recreated Vagrant machine - no success.
Vagrant outputs this notice but I am not sure what exactly I need to run:
Composer and WP-CLI commands need to be run on the virtual machine for any post-provision modifications.
Please help, I am very confused right now (ah, BrowserSync does not work for me, I’ll create another topic for that.)
That’s very unlikely. The change you made would only affect Composer, which only handles the installation of PHP packages. Problems with BrowserSync or site access are going to be a problem with JavaScript or server/VM/host configuration.
I had tried to paste a few different options from this Discourse in my resources/assets/config.json but didn’t try the one you mentioned. Will try “advanced” as well this evening, thanks.
I still hope there should be a way to load my CSS into browser without BrowserSync.
This basic flow should just work:
Update .CSS file -> save the files -> compile .CSS -> refresh page -> browser picks up new files and displays pink links.