Archived Support Site

This support site is archived. You can view the old support discussions but you cannot post new discussions.

Css and Javascript not loading

ciaranmay's Avatar

ciaranmay

25 Sep, 2017 06:44 PM

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 ?

  1. 1 Posted by ciaranmay on 25 Sep, 2017 06:53 PM

    ciaranmay's Avatar

    iv set by build to content still no css and js ?

  2. 2 Posted by ciaranmay on 25 Sep, 2017 07:00 PM

    ciaranmay's Avatar

    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

  3. Support Staff 3 Posted by rune on 26 Sep, 2017 04:32 AM

    rune's Avatar

    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 the Debug attribute mentioned in the article I linked to above.

    Best,
    Rune

  4. rune closed this discussion on 26 Sep, 2017 04:32 AM.

  5. ciaranmay re-opened this discussion on 27 Sep, 2017 06:42 PM

  6. 4 Posted by ciaranmay on 27 Sep, 2017 06:42 PM

    ciaranmay's Avatar

    Thank you iv started project again and done smaller commits and builds and seems to be working

  7. Support Staff 5 Posted by rune on 28 Sep, 2017 04:49 AM

    rune's Avatar

    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

  8. rune closed this discussion on 28 Sep, 2017 04:49 AM.

  9. ciaranmay re-opened this discussion on 28 Sep, 2017 05:58 AM

  10. 6 Posted by ciaranmay on 28 Sep, 2017 05:58 AM

    ciaranmay's Avatar

    Thanks , I appreciate that

    Sent from my iPhone

  11. rune closed this discussion on 28 Sep, 2017 05:59 AM.

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