I’ve been using Sage for a while now, most recently the 8.x version and everything has been great. I usually roll out a Digital Ocean droplet and do my work on there. I’m on a Windows PC and my workflow has been like this:
- Go to Digital Ocean, create WordPress droplet, log in with SSH to enable it.
- Install software I need (composer, etc) and run commands to download and install Sage.
- Then I open up my code editor, I use PHP Storm, and I connect to the remote server. It downloads a copy of all of the files and keeps a copy of them on my computer locally but whenever I make a change to them it automatically uploads them to the remote server.
- I run gulp watch on the remote server and the build happens there and I can reload the browser (I’ve never used the Browser Sync since it has never worked for me) and I see my changes.
I tried to do the same thing on Sage 9 but I’ve been told that it doesn’t support working off of a remote server this way. When I run yarn watch it tries to load the Browsersync but fails and then it deletes the CSS file instead of compiling it. It seems every workflow I’ve found adds extra steps to what I’m doing now - for example having to push to a git repo each time I want to see a change.
What is everyone else doing?