Skip to content
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

[QUESTION][SOLVED] I just can't seem to get my multi-page setup to work #929

Closed
4 tasks done
coalwater opened this issue Oct 3, 2022 · 7 comments
Closed
4 tasks done
Labels
🤷‍♂️ Question [ISSUE] Further information is requested

Comments

@coalwater
Copy link

Question

I'm trying to create a new dashy page for my frequently used links at work in a separate page, to make that my homepage in my work laptop.

I've been struggling for weeks, every now and then I keep fiddling with my conf.yml and pages, but it just never seems to work out.

I've looked into the issues and I see there's two groups of people, some who their setup just works, and some that can't get things working, and I'm starting to think it might be related to how the application is deployed.

I'm gonna share snippets here from my conf.yml and work.yml and see if you can spot something that's immediately looks wrong.

# conf.yml
pageInfo: title: My home page

appConfig:
  language: en
  startingView: default
  iconSize: medium
  routingMode: hash
  preventWriteToDisk: true
  preventLocalSave: true
  disableConfiguration: true
  disableContextMenu: true
  enableServiceWorker: false
pages:
  - name: My home page
    path: 'conf.yml'
  - name: Work
    path: 'work.yml'


sections:
  - name: Start
    widgets:
      - type: clock
        options:
          timeZone: Europe/Amsterdam
          format: en-GB
          hideDate: false
# snip
# work.yml
# copied from somewhere in the docs
sections:
- name: Work
  icon: far fa-code
  items:
    - title: Normal Item 1
    - title: Normal Item 2
    - subItems:
      - icon: si-javascript
        title: JavaScript
        url: https://developer.mozilla.org
      - icon: si-typescript
        title: TypeScript
        url: https://www.typescriptlang.org/docs
      - icon: si-svelte
        title: Svelt
        url: https://svelte.dev/docs
      - icon: si-go
        title: Go
        url: https://go.dev/doc

My current setup is deployed on a local kubernetes cluster,
the request goes through cloudflare -> firewall -> traefik (pod) -> dashy (pod)
I can verify that the work.yml file is accessible by doing curl https://mydomain.com/work.yml

If I try to click the work section on the top nav I get this error on the console

No section named 'work' was found

Which doesn't make sense because I thought dashy would be loading the full yml file, not just searching for a section called work

Another symptom that I'm not sure if it's related, it seems that the routingMode: hash is not being picked up, and dashy is still using history

Category

Configuration

Please tick the boxes

@coalwater coalwater added the 🤷‍♂️ Question [ISSUE] Further information is requested label Oct 3, 2022
@liss-bot
Copy link
Collaborator

liss-bot commented Oct 3, 2022

If you're enjoying Dashy, consider dropping us a ⭐
🤖 I'm a bot, and this message was automated

@isaaccs
Copy link

isaaccs commented Oct 6, 2022

Hi, did you succeed ?

@liss-bot liss-bot added the 👤 Awaiting Maintainer Response [ISSUE] Response from repo author is pending label Oct 6, 2022
@coalwater
Copy link
Author

I haven't had time to look deeper into this, I'll try to spend some time on it again this weekend.

@coalwater
Copy link
Author

So I finally was able to figure out what was going wrong, I tested against the dev server using yarn dev and the pages were working just fine.

I found out that I had switched my deployment use the yarn start instead of yarn build-and-start, and when I tested with build-and-start that worked just fine.

My only question now would be, why do we need to build before starting ?

@coalwater coalwater changed the title [QUESTION] I just can't seem to get my multi-page setup to work [QUESTION][SOLVED] I just can't seem to get my multi-page setup to work Oct 6, 2022
@liss-bot liss-bot removed the 👤 Awaiting Maintainer Response [ISSUE] Response from repo author is pending label Oct 7, 2022
@coalwater
Copy link
Author

I'll close this thread and open a new one concerning my question from the post above.

@kmanwar89
Copy link

I had this same issue, and was able to resolve it by performing a re-build through the GUI. Once that was done, the change of multiple pages was successfully reflected

@zbin-x
Copy link

zbin-x commented May 29, 2023

So I finally was able to figure out what was going wrong, I tested against the dev server using yarn dev and the pages were working just fine.

I found out that I had switched my deployment use the yarn start instead of yarn build-and-start, and when I tested with build-and-start that worked just fine.

My only question now would be, why do we need to build before starting ?

docker exec -it Dashy sh
yarn build-and-start

That's it
thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤷‍♂️ Question [ISSUE] Further information is requested
Projects
None yet
Development

No branches or pull requests

5 participants