Giter Site home page Giter Site logo

Comments (7)

Lissy93 avatar Lissy93 commented on May 22, 2024

Hi @mfitzgerald2 - thanks for your question :)

Could you clarify weather it works prior to updating your config file?

In terms of making updates to the compiled app, and changes not showing up when you're hosting it through a CDN, this is actually the expected behavior, and stems from how the Vue CLI works. The built app is effectively just static JS, and so it needs to be re-compiled for changes to take effect.
There are several ways to overcome this:

  • Option 1: The easiest method of deployment is always going to be to use Docker. It also gives you access to automatic rebuilds, and everything just works perfectly out of the box, as the environment provided by the Docker container is pre-configured.
  • Option 2: Run Dashy using the included Node.js server
  • Option 3: If neither of these is an option for you, and you need to regularly make changes to your config, then another approach would be to put the entire Dashy directory on your server, and point your web server to serve up ./dist folder- that way you can make changes to the config, run yarn build and have the dist directory updates.

However the situation you described with just the startup page showing definitely sounds like a bug to me. Would you mind sharing the output of your browser console (Open dev tools/ F12, and go to the console tab). That'll help me determine what's causing this.

from dashy.

mfitzgerald2 avatar mfitzgerald2 commented on May 22, 2024

Thanks for the reply! Everything works fine locally.

Here is the output:

(index):1 Refused to apply style from 'https://home2.[domain].net/#' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
(index):1 Uncaught (in promise) Event
dashy.8602f152.js:1 Error during service worker registration: TypeError: Failed to register a ServiceWorker for scope ('https://home2.[domain].net/') with script ('https://home2.[domain].net/service-worker.js'): ServiceWorker script evaluation failed
error @ dashy.8602f152.js:1
(index):1 Refused to apply style from 'https://home2.[domain].net/#' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
DevTools failed to load source map: Could not load content for https://home2.[domain].net/js/dashy.8602f152.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE

from dashy.

Lissy93 avatar Lissy93 commented on May 22, 2024

Thanks for that info, I think I see the issue, looks like the document root is misconfigured, so all the web assets are returning a 404, so I think it's an issue on my end -I'll look into this tomorrow and see what I can do :)

from dashy.

mfitzgerald2 avatar mfitzgerald2 commented on May 22, 2024

Wonderful, let me know if you need any more information on my end!

from dashy.

Lissy93 avatar Lissy93 commented on May 22, 2024

Hey @mfitzgerald2 - I've been unable to recreate this, have tried several different web servers and CDN's, and so far everything is working. Would you mind sharing a few more details around your specific setup?

  • What system that you are trying to run Dashy on (Win, Mac, Linux)
  • What web server that you are using?
  • Are you serving Dashy up from ./dist, right?
  • Anything else that you did?

from dashy.

mfitzgerald2 avatar mfitzgerald2 commented on May 22, 2024

I found my solution, it was my fault. The server I was copied /dist over to didn't have Node installed.

from dashy.

Lissy93 avatar Lissy93 commented on May 22, 2024

Great, I'm glad it's working now. Thanks for letting me know, I'll take note of this incase anyone has a similar issue in the future :)

from dashy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.