Roots Discourse

Missing CSS and JS on staging deploy

#1

First time deploying via the new simplified Trellis. After breaking through a couple snags I got my staging server to deploy (http://192.241.227.235/). As you can see at the moment the main.css and main.js are missing. They aren’t missing from the <head>, they’re just missing from the build itself.

Strange thing is that local dev environment is working just fine. I’m assuming it’s an issue with Gulp and/or Trellis’s build process, but not certain. Any thoughts extremely appreciated.

Working Repo.

Edit: Maybe worth noting that I ran variantions of: gulp, gulp watch, and gulp --production, multiple times while re- provisioning and deploying. Which didn’t seem to solve anything.

0 Likes

Vagrant Up error with new v. of Trellis
#2

Have you uncommented the tasks you need in build-before.yml deploy hooks?

2 Likes

#3

Ah, found the documentation.

I was expecting to see that step in the Trellis docs. But Sage makes sense too.

Thanks Nick!

0 Likes