# Missing Styles in Staging/Production (404 on main.css & main.js)

**URL:** https://discourse.roots.io/t/missing-styles-in-staging-production-404-on-main-css-main-js/5325
**Category:** uncategorized
**Created:** 2015-11-21T12:47:12Z
**Posts:** 3

## Post 1 by @masoninthesis — 2015-11-21T12:47:13Z

Hey guys,

Here’s my staging env with missing styles (and js): [http://107.170.31.75/](http://107.170.31.75/)

It’s an out of the box Roots package (sage/trellis/bedrock on DigitalOcean)

[This is the step-by-step](http://jackalope.io/project-blueprint-jack4-1/) of the exact process I used.  
[Here’s the github repo](https://github.com/masoninthesis/jack4.1).

According to my console, I seem to be missing my [main.css](http://107.170.31.75/app/themes/sage/dist/styles/main.css) and my [main.js](http://107.170.31.75/app/themes/sage/dist/styles/main.js). But locally, they load just fine.

I checked out the solutions @ben recommended [here](https://discourse.roots.io/t/missing-main-js-in-production-mode/3515/2?u=masoninthesis). But `run-sequence` appears to be setup correctly.

**My first guess–** would be that it has something to do with [these lines of code](https://github.com/masoninthesis/jack4.1/blob/master/trellis/group_vars/staging/main.yml#L3-L14) in my `/trellis/group_vars/staging/main.yml`file. Because I’m used to adding these lines, but I can’t find them in the current [Example Project](https://github.com/roots/roots-example-project.com/tree/master/trellis/group_vars/production).

**My second guess–** would be that it has something to do with the [manifest.json](https://github.com/masoninthesis/jack4.1/blob/master/site/web/app/themes/sage/assets/manifest.json).

There’s always the possibility I missed a vital step.

---

## Post 2 by @vdrnn — 2015-11-22T15:27:30Z

Did you try to ssh into the staging box and see if the files are in the dist folder at all? That way you can figure out if they are at the right place at all. Maybe it’s just a permission issue.

---

## Post 3 by @masoninthesis — 2015-11-23T21:57:38Z

This is a silly question, but I’m not sure which directory Trellis deploys the site to.

Regardless– I found the solution without having to do that. I noticed two recent posts that reported missing dist folders:

1. [Dist folder does not show up on DO droplet](https://discourse.roots.io/t/dist-folder-does-not-show-up-on-do-droplet/5334)
2. [Deployment with the new Trellis hooks](https://discourse.roots.io/t/deployment-with-the-new-trellis-hooks/5016)

I simply followed [this step](https://github.com/masoninthesis/jack4.1/blob/master/trellis/deploy-hooks/build-before.yml#L4), and it worked.

Thanks!
