cancel
Showing results for 
Search instead for 
Did you mean: 

Snowdog blank theme - Post-deployment compilation

Snowdog blank theme - Post-deployment compilation

We've just deployed an M2 site to the staging environment but the styles were all out of whack.

 

After some trial and error I found it was because the compiled styles from theme-blank-sass weren't present. There is no Sass/gulp on the staging server.

 

Is there a way to compile the blank theme and commit that to my local git, or is compiling it on the server the only way to do this without php compilation for sass like m2 uses for LESS?

 

Perhaps I'm missing something simple.

1 REPLY 1

Re: Snowdog blank theme - Post-deployment compilation

You need some "middle" step in your deployment pipeline to compile necessary static assets (like SASS to CSS) and push ready to use code to running M2 instance.

 

For staging environment maybe enough to run this compilation on server, right after deployment, same as you run i.e. `setup:static-content:deploy`