Production not loading CSS or JS

This is the first time I have used the Sage theme, and so far I love it. I plan on using the entire roots suite but I thought the Sage theme would be the best place to start.

I am running into an issue when I put the theme onto the production server. The JS and CSS return as 404 not found. I have run gulp --production and moved the files to the server but they are not appearing and the site loads wordpress without any style. Running gulp watch the site is rendered correctly.

This is the first time I have used Bower and Gulp so maybe i’m in over my head, but I’m trying to build better sites.

Please let me know if I’m missing any details.

1 Like

I am having this exact same problem. Did you ever get it figured out?

1 Like

Did you move your dist folder to your production server too? the server will try to load your assets from the dist folder. If the folder is there but the assets are still not loading it might be a permission error on your server. Make sure your assets are readable but setting the permission recursively on the dist folder to 755.