Forum Forums Mecons Dependencies not found in production environment.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • microservizi
    Participant
    Post count: 10

    Hi,

    my web application is an MVC in a docker container, then in Development Environment I have no problem.
    But when I compile my docker-compose and run it in a Production Environment, my browser can not find the js and the css files of metronic.

    NOTE: docker client and browser are locally in the same host.

    The header of html page is:

    
        <environment names="Development,Staging,Production">
    
            <!-- -------------------- CSS Metronic -------------------- -->
            <script src="https://ajax.googleapis.com/ajax/libs/webfont/1.6.16/webfont.js"></script>
            <script>
                WebFont.load({
                    google: { "families": ["Poppins:300,400,500,600,700", "Roboto:300,400,500,600,700"] },
                    active: function () { sessionStorage.fonts = true; }
                });
            </script>
            <link href="~/Metronic/vendors/base/vendors.bundle.css" rel="stylesheet" />
            <link href="~/Metronic/demo/default/base/style.bundle.css" rel="stylesheet" />
            <link href="~/Metronic/vendors/custom/fullcalendar/fullcalendar.bundle.css" rel="stylesheet" />
            <link rel="shortcut icon" href="Metronic/demo/default/media/img/logo/favicon.ico" />
    
            <!-- -------------------- JS Metronic -------------------- -->
            <script src="~/Metronic/vendors/base/vendors.bundle.js"></script>
            <script src="~/Metronic/demo/default/base/scripts.bundle.js"></script>
            <script src="~/metronic/vendors/custom/fullcalendar/fullcalendar.bundle.js"></script>
            <script src="~/Metronic/app/js/dashboard.js"></script>
    
            <!-- -------------------- Others -------------------- -->
            <script src="~/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.js"></script>
            <script src="~/lib/oidc-client/dist/oidc-client.js"></script>
    
            <link href="~/css/site.css" rel="stylesheet" />
            <script src="~/js/app.js"></script>
    
            ... ... ..
    
        </environment>
    


    On browser, I see that the following files are not loaded with status code of 404 (Not Found):
    – “vendors.bundle.css”, “style.bundle.css”, “fullcalendar.bundle.css”, “vendors.bundle.js”, “scripts.bundle.js”, “dashboard.js”

    Instead the others files are loaded correctly with status code of 200:
    – “fullcalendar.bundle.js”, “oidc-client.js”, “site.css”, “app.js”, and others… … ..

    Note: that “fullcalendar.bundle.js” is loaded correctly!! (this is strange)

    The files root is wwwroot.

    I can check for paths and are all correct.

    The license code is activate correctly.

    Can you help me?

    Salvatore Giani’ (Microservizi)

    microservizi
    Participant
    Post count: 10

    Excuse my mistake,

    case-sensitive path on production environment

    …RESOLVED!

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.