# Trouble loading assets folder in production

**URL:** <https://community.plotly.com/t/trouble-loading-assets-folder-in-production/31958>\
**Category:** Dash Python\
**Created:** [November 27, 2019, 7:21pm UTC](https://community.plotly.com/t/trouble-loading-assets-folder-in-production/31958 "2019-11-27T19:21:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dhhagan](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/dhhagan/32/31_2.png) [@dhhagan](https://community.plotly.com/u/dhhagan)\
**Post date:** [November 27, 2019, 7:21pm UTC](https://community.plotly.com/t/trouble-loading-assets-folder-in-production/31958/1 "2019-11-27T19:21:10Z")

</div>

I am trying to use gevent to run a WSGI server with Dash - it appears that ` __name__ ` no longer works for locating the assets folder locally. I can probably just host everything off an S3-compliant storage solution but would like to know how to direct the assets folder to the right location. The docs mention explicitly setting ` __name__ ` - can anyone provide an example of what this would look like? Thanks.

I’ve taken a look at a similar issue ([Dash app does not load assets and app.index\_string](https://community.plotly.com/t/dash-app-does-not-load-assets-and-app-index-string/12178)), but this solution still does not resolve the issue. The **assets** folder is still not properly located with the dash constructor looking something like:

```python
app = dash.Dash(
    __name__ ,
    meta_tags=[{"name": "viewport",
                "content": "width=device-width, initial-scale=1.0"}],
    external_stylesheets=[
        dbc.themes.BOOTSTRAP
    ],
)

```

I am running this app via **gunicorn** as a pip-installable package, which may be causing some issues.

**EDIT** :

Last, I have tried serving the assets folder from a CDN with no luck…

---

<div class="post-metadata">

**Author:** ![tcbegley](https://avatars.discourse-cdn.com/v4/letter/t/46a35a/32.png) [@tcbegley](https://community.plotly.com/u/tcbegley)\
**Post date:** [December 2, 2019, 4:18pm UTC](https://community.plotly.com/t/trouble-loading-assets-folder-in-production/31958/2 "2019-12-02T16:18:25Z")

</div>

The `Dash` constructor has an argument `assets_folder`, you could try giving that an absolute path to your assets folder?
