-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Multi-Page Support , can´t get it to work. #1005
Comments
If you're enjoying Dashy, consider dropping us a ⭐ |
Same as conf.yaml
|
Same experience. Have the additional page in the same folder as the config.yml Not working. |
Same experience. Not working. |
same issue here. I had a look into the routing code and found that the logic builds routes based on page "type" (home =default; workspace; dev) but i have not found any way for users to specify the page type in the configs. Also @Lissy93 may i suggest some fix to clearify and easy up multi-page Support: To serve a common use case: Sadly, i am not skilled enough in js and vue to have a try for the fix myself. So @Lissy93 would be nice for us docker heads to check this issue. Thanks in advance. |
For me it is also not working. docker-compose.yml:
conf.yml:
Clicking the NAS button does nothing, opening in new tab gives 'Cannot GET /home/nas' |
Same bug in 2.1.1. I try the same configs with 2.1.0 and in this version pages work. |
So I had the same issue , I fixed it by setting routingMode to hash. |
I got the same problems, it's very frustrating because there is no error message and no logs ... (or I didn't find them). For me, the problem was in my file for the new page, some syntax problems (in widgets, the "limit: 60" in "type" instead of 'options'. I can suggest you to try with some examples and when you have a page who work, do changes carrefully! (using Docker version 20.10.3, build 55f0773) |
Same experience. Not working. |
Was having the same issue, turns out I needed to change the command below so it rebuilds/indexes the files. Now my image folder and custom pages are working. https://dashy.to/docs/developing/#alternate-start-commands
|
Don't know if this is related to same issue or not dashy only opens at http://ip:port/test.yml shows the test page config yml Edit: Edit 2: |
same issue, anyone have an resolution? |
Is Dashy unsupported ? |
If the files are mounted correctly, doing a "rebuild application" through UI should fix this. (do this manually everytime the config files are edited) |
Nope does not work |
When you say mounted correctly I have done very tutorial i can find and there's a lot and trayed every possible config, trust me I have wasted hours on this. show how about you wright your how to guide to help people insted of being not so helpful. |
I just did a test, and it seemed to me "rebuild" is really the one thing fixed it. I'll post configs below so you could give it a test. Upon bring the container up, the "frontpage" button doestn't do anything. After "rebuild" through the web UI, and check the logs to make sure it is rebuilt, the "frontpage" button will work. docker-compose.yml
conf.yml
|
thanks for the information, i will give it a try but that is just a faf. |
may look at this https://homarr.dev/ as its more active and replace dashy.
|
The rebuild didn't work for me, I assume there is still no fix for this? |
Making sure each .yml file was mapped and mounted as a volume then rebuilding worked for me. Thanks for this thread and leading me in right direction! |
I've tried this again mimicking the recent post above but still not working for me. I'll have to come up with another solution as the multi-pages just doesn't appear to work or is too complicated to implement. |
If it helps at all here is how I did it. You have to make each .yml a volume...here is command I used to run dashy...my .yml files are in the /opt/dashy/config directory before this is run: docker run -d --name=dashy --restart=always --network=host -v /opt/dashy/config/conf.yml:/app/public/conf.yml -v You see the two -v statements mapping the yml files....then I build the application from command line like so: docker exec -it dashy yarn build After that the pages worked for me... |
So after messing around a little bit more I actually did get it to work so that it switches to the second page however while I was previously able to make updates to the yml code through via ssh in VSCode I noticed that doesn't seem to work anymore. Will any changes or updates now require a re-build each time? |
So unfortunately this app is just becoming too flakey to use. While I did momentarily get the second page to show I am unable to make any edits through the UI and as I mentioned earlier for some reason it no longer recognizes any changes I make directly in the conf.yml or pages.yml. So I thought maybe I need to do a rebuild again however doing that just prevented the second page from showing again. I really like a lot of the aspects of this Dashboard but it looks like I might have to move on from it until it becomes more stable to work with. |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
I finally got it work! Running Dashy 2.1.0 not in Docker. The answer is here: https://dashy.to/docs/troubleshooting/#refused-to-connect-in-modal-or-workspace-view Under Troubleshooting, I found this little gem. 404 On Multi-Page Apps From the Second thing.
Hope this helps someone else.
|
I did the solution for this. As said above, using Docker is not very cool.That's why I used it in node but for that the sever configuration adds a rule. As I'm on my cell phone and logged in from home, I can't provide 100% of the solution. But it's about putting the routes for readings coming directly from root using a script with root permission!
|
Hi |
Environment
Self-Hosted (Docker)
System
Docker
Version
Version: 20.10.21
Describe the problem
I have add
And make work.yml file
I can see Pages link in Dashy, but If I click on "Work Stuff" I coming to url: "http:mypage/home/work-stuff"
But is not working. I see same page as conf.yml...
And If I reload I get "Cannot GET /work-stuff"
work.yml file is mounded in docker and have r&w.
I don´t understad if I have make something wrong or if this is bug???
Additional info
No response
Please tick the boxes
The text was updated successfully, but these errors were encountered: