1

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 localhost

This is what it looks like on appharbor appharbor

madth3
  • 7,275
  • 12
  • 50
  • 74
jamesamuir
  • 1,397
  • 3
  • 19
  • 41

1 Answers1

3

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>
Community
  • 1
  • 1
friism
  • 19,068
  • 5
  • 80
  • 116
  • I updated the web.config and deployed it and am still receiving the same result. – jamesamuir Jan 26 '13 at 04:06
  • 1
    It turns out that the build action for the .less files was set to "none" even though I had thought i had set it to "content". Updating that and redeploying solved my issue. Thanks again for the reply! – jamesamuir Jan 31 '13 at 15:58