Css and Javascript not loading
Hi im looking to use app harbor for continious intergration from bit bucket, im building a MVC5 application and im getting a build url just no css or js getting loaded ?
Discussions are closed to public comments.
If you need help with AppHarbor please
start a new discussion.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
1 Posted by ciaranmay on 25 Sep, 2017 06:53 PM
iv set by build to content still no css and js ?
2 Posted by ciaranmay on 25 Sep, 2017 07:00 PM
what im getting on appharbor
<link href="/Content/css?v=2fbi3WYNhdDLWA7UKpoBCPEjM77rDDa-2aL4h_pma-Q1" rel="stylesheet">
<script src="/bundles/modernizr?v=wBEWDufH_8Md-Pbioxomt90vm6tJN2Pyy9u9zHtWsPo1"></script>
my local
<link href="/Content/bootstrap-lumen.css" rel="stylesheet">
<link href="/Content/site.css" rel="stylesheet">
<script src="/Scripts/modernizr-2.6.2.js"></script>
im new to app harbour so would appreciate any help to get my build url working
Support Staff 3 Posted by rune on 26 Sep, 2017 04:32 AM
Hi there,
The issue might be related to missing files, but it seems the URLs you mention should be handled by a route as it's configured to bundle/minimize the static assets. Do you have this configured in your application's routes? You might want to take a look at this article for more information on how to accomplish this (as well as disabling/enabling this behavior locally).
You're likely seeing different output links on AppHarbor as your app is built in "Release" mode with configuration transformations applied, which usually has a
Web.config.Release
removed theDebug
attribute mentioned in the article I linked to above.Best,
Rune
rune closed this discussion on 26 Sep, 2017 04:32 AM.
ciaranmay re-opened this discussion on 27 Sep, 2017 06:42 PM
4 Posted by ciaranmay on 27 Sep, 2017 06:42 PM
Thank you iv started project again and done smaller commits and builds and seems to be working
Support Staff 5 Posted by rune on 28 Sep, 2017 04:49 AM
Alright great! I'll close this issue for now, but feel free to reach out if there's anything else I can help with.
Best,
Rune
rune closed this discussion on 28 Sep, 2017 04:49 AM.
ciaranmay re-opened this discussion on 28 Sep, 2017 05:58 AM
6 Posted by ciaranmay on 28 Sep, 2017 05:58 AM
Thanks , I appreciate that
Sent from my iPhone
rune closed this discussion on 28 Sep, 2017 05:59 AM.