I’ve noticed that the directory where styles and scripts are normally compiled on my local VM, e.i.
themes/sage/dist is not checked to the git directory (I’m using the default
.gitignore that comes with Sage)
Consequently, the styles and scripts are not deployed to the serve when deploying with Ansible. The site is broken. CSS and JS files return a 404 error when inspecting with Chrome network tab.
This is very puzzling because I do not see any rule in the
.gitignore that would tell Git to ignore this directory.
I thought that maybe the intention is that scripts and styles should be automatically re-built with Gulp on the server after each deploy. However, no such rebuilding takes place by default.
Why is the
themes/sage/dist directory not deployed to the server? And how can I re-build my assets after a deploy?