Comments (7)
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, runyarn 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.
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.
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.
Wonderful, let me know if you need any more information on my end!
from dashy.
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.
I found my solution, it was my fault. The server I was copied /dist over to didn't have Node installed.
from dashy.
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)
- Move section HOT 3
- [QUESTION] <Wiki from GitHub is not useful but docs from dash.io worked.> HOT 3
- [BUG] Emby status check does not work HOT 5
- [BUG] Can not use localsave for layoutOrientation and iconSize HOT 2
- [FEATURE_REQUEST] GPU Widget for Glances??
- [QUESTION] Save to Disk failed, now Dashy won't load. HOT 2
- [QUESTION] Background color doesn't seem to be universal HOT 13
- [QUESTION] How to set per-section/per-item config options? HOT 3
- [QUESTION] Question about Page HOT 4
- [QUESTION] Show result of curl request to TXT HOT 3
- [BUG] <title>MVG Connections always shows the connection between Marienplatz and Giesing no matter how the config file is modified. HOT 2
- Hi, I'm new here and I could really use some help HOT 1
- [QUESTION] how to get widgets working when using nginxproxymanager HOT 12
- [FEATURE_REQUEST] Add a startpage view optimized to reduce load time HOT 2
- 导航图标标题 HOT 1
- [FEATURE_REQUEST] widget for uptime-kuma HOT 2
- [FEATURE_REQUEST] healthchecks continues checking HOT 1
- How to change --content-max-width HOT 6
- deployed on vercel HOT 10
- [QUESTION] Serve assets only to logged in users HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dashy.