<p>A single line in my <code>gitignore</code> file, <code>CSS</code> was preventing the Admin CSS from deploying to the live server. While this problem isn't specific to Craft, I'm leaving it here in case others encounter the issue.</p>

<p>That line only prevented <em>folders</em> named CSS from deploying, which is why the public site CSS deployed without a problem, making the problem less obvious.</p>

CC BY-SA 3.0
2016-06-19T18:58:25.223Z
2016-06-19T23:37:34.350Z
2016-06-19T23:37:34.350Z
Sean O'Brien
<p>The development site works locally, but on a live hosted server the admin CSS is missing. The admin JS shows up. The public-facing site works fine on the live server and I can log in to the admin area, but with the admin CSS missing, the admin area is nearly useless. A few potentially useful pieces of information:</p>

<ul>
<li>I followed the Craft "Troubleshooting Missing CSS/JS in the Control Panel" instructions  and verified that zlib.output_compression is disabled.</li>
<li>The generated CSS links from the admin area look like they should work, especially since the JS links do work. </li>
<li>I'm running PHP 7.0.0 locally, using MAMP.</li>
<li>The hosting company, Nexcess, is running PHP 7.0.6 on my account.</li>
</ul>

<p>I'm stumped as to why this is happening or how to troubleshoot it.</p>

<control-panel><css>
Admin CSS missing from hosted site
# Admin CSS missing from hosted site

(Asked by: username_0 on 2016-06-17)

The development site works locally, but on a live hosted server the admin CSS is missing. The admin JS shows up. The public-facing site works fine on the live server and I can log in to the admin area, but with the admin CSS missing, the admin area is nearly useless. A few potentially useful pieces of information:

* I followed the Craft "Troubleshooting Missing CSS/JS in the Control Panel" instructions and verified that zlib.output\_compression is disabled.
* The generated CSS links from the admin area look like they should work, especially since the JS links do work.
* I'm running PHP 7.0.0 locally, using MAMP.
* The hosting company, Nexcess, is running PHP 7.0.6 on my account.

I'm stumped as to why this is happening or how to troubleshoot it.

**Tags:** control-panel, css

---

## 1 answers

### Answer by username_0 on 2016-06-19. Score: 3 | Accepted answer

A single line in my `gitignore` file, `CSS` was preventing the Admin CSS from deploying to the live server. While this problem isn't specific to Craft, I'm leaving it here in case others encounter the issue.

That line only prevented *folders* named CSS from deploying, which is why the public site CSS deployed without a problem, making the problem less obvious.


---

