nanobox-io / nanobox-guides

Guides for using languages and frameworks with Nanobox
https://guides.nanobox.io
MIT License
11 stars 19 forks source link

Fix static file paths #67

Closed kkinder closed 7 years ago

kkinder commented 7 years ago

By default, with flask, your files in /static/ include /static/ in the URLs.

So for example, your flask app would link to /static/file.css. This documentation, therefor, would have nginx looking in /static/static/file.css.

This PR fixes that. I'm pretty sure it's still safe, because while the root directory for serving static content is the app, it limits it to /static URLs. Someone who knows more about Nginx than me might want to double check that, though.

sanderson commented 7 years ago

Thanks @kkinder! Nice catch. I did some quick research and you're absolute right. Thanks for the PR. Merged.