Apphabor gives 404 on bootstrap.less

安稳与你 提交于 2019-12-11 05:03:42

问题


I have deployed a simple .NET MVC application on appharbor that implements bootstrap and less. The less loads fine on my localhost instance when i run it, however, when i push it to appharbor i get a 404 on bootstrap.less.

Has anyone run into this before that might be able to tell me why?

I have checked the buildout and the less directory/file structure exists on the deployment.

The appharbor url is http://appharbor-bootstrap.apphb.com/ if anyone wants to check out what im seeing.

Source can be found on github https://github.com/jamesamuir/appharbor-bootstrap

This is what it is supposed to look like

This is what it looks like on appharbor


回答1:


You probably have to configure the mime-type mapping in your web.config. There are links to details here and here.

<system.webServer>
    <staticContent>
        <mimeMap fileExtension=".less" mimeType="text/css" />
    </staticContent>
</system.webServer>


来源:https://stackoverflow.com/questions/14493102/apphabor-gives-404-on-bootstrap-less

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!