# HubL Local Server not Rendering CSS and Javascript

**URL:** <https://community.hubspot.com/t/hubl-local-server-not-rendering-css-and-javascript/8392>\
**Category:** CMS Development\
**Created:** [April 4, 2018, 9:48pm UTC](https://community.hubspot.com/t/hubl-local-server-not-rendering-css-and-javascript/8392 "2018-04-04T21:48:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![LambertStrategy](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/lambertstrategy/32/75868_2.png) [@LambertStrategy](https://community.hubspot.com/u/LambertStrategy)\
**Post date:** [April 4, 2018, 9:48pm UTC](https://community.hubspot.com/t/hubl-local-server-not-rendering-css-and-javascript/8392/1 "2018-04-04T21:48:16Z")

</div>

Can anyone show me what needs to be done to get the JS, CSS, and images working properly on the local HubSpot server? The site has been built out locally using HubL’s Local Server environment, and I’m firing it up with terminal on osx.

When I open the file directly in Chrome it loads the JS and CSS perfectly, but when I view the same page in [http://127.0.0.1:8080/custom/page/example.html](http://127.0.0.1:8080/custom/page/example.html) It does not render either the javascript, css, or images.

I have tried adding the minimum required HubL snippets ( header and footer) with no effect.

---

<div class="post-metadata">

**Author:** ![Gonzalo](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/gonzalo/32/106671_2.png) [@Gonzalo](https://community.hubspot.com/u/Gonzalo)\
**Post date:** [April 5, 2018, 12:16pm UTC](https://community.hubspot.com/t/hubl-local-server-not-rendering-css-and-javascript/8392/2 "2018-04-05T12:16:25Z")

</div>

Hey @LambertStrategy,

Did you changed anything in the conf/config.yaml ? Usually it just works fine since the start.

Seems like or you have something wrongly configurated or the 8080 port is already taken by other process.

I never had such kind of error so if didn’t changed the config try first changing the port and admin port to a different one (in the mentioned config file) if none of that work or you have already tweaked your config probably you have setup wrongly the **contextBaseDir,**  **templateBaseDir** or the **extensionResourceMappings**. So double check the paths and try removing \*\*bleep\*\* symbols in the names (if exists).

---

<div class="post-metadata">

**Author:** ![LambertStrategy](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/lambertstrategy/32/75868_2.png) [@LambertStrategy](https://community.hubspot.com/u/LambertStrategy)\
**Post date:** [April 5, 2018, 5:47pm UTC](https://community.hubspot.com/t/hubl-local-server-not-rendering-css-and-javascript/8392/3 "2018-04-05T17:47:52Z")

</div>

Hi Gonzalo,

Thanks for your advice. I looked at the config.yaml, which had not been edited, and sought to make changes but no luck. After re-installing the Hubl local server, I think I’ve found the problem. I’m getting 404s on all the GET requests. I have a feeling that has to do with the yaml file but I don’t know what to do.

- Lambert Strategy

---

<div class="post-metadata">

**Author:** ![LambertStrategy](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/lambertstrategy/32/75868_2.png) [@LambertStrategy](https://community.hubspot.com/u/LambertStrategy)\
**Post date:** [April 5, 2018, 6:28pm UTC](https://community.hubspot.com/t/hubl-local-server-not-rendering-css-and-javascript/8392/4 "2018-04-05T18:28:44Z")

</div>

My solution to getting CSS, JS, and images to work in my local development with hubspot’s local involved the following:

1. Adding HubL to the head

```auto
{{ standard_header_includes }}
<link rel="stylesheet" href="{{ get_public_template_url('example.css') }}">

```

2. Adding “/file\_manager/” to the beginning of all image paths. Unfortunately, this is not in the documentation from Hubspot about using the Hubspot Local server. It should be. The post I found it on is here: [StackOverflow](https://stackoverflow.com/questions/37342853/hubspot-local-hubl-server-images-will-not-load)
