Wie installiere ich eine Themenkomponente mit app.yaml oder von einem lokalen Gerät?

My discourse server is in K8s.
Can I install theme component(for example discoTOC) with bellow app.yaml config? If not, how to install from my local device?(the k8s is not allowed to access github).

hooks:
  after_code:
    - exec:
        cd: $home/plugins
        cmd:
          - git clone https://github.com/discourse/xxx.git

I tried to install discoTOC(download from github) from local device but report bellow error

Import Error: about.json does not exist, or is invalid. Are you sure this is a Discourse Theme?

I have just tried the same thing on my test site and it worked for me? Have you grabbed the right file?

https://github.com/discourse/DiscoTOC

1 „Gefällt mir“

Thanks for your reply. It works.
The point is using zip file downloaded from GitHub.
unzip and re-zip file doesn’t work on MAC

1 „Gefällt mir“

We have a guide on this, see:

2 „Gefällt mir“

Would that work if you can’t access GitHub?

2 „Gefällt mir“

yes. Local device installation works .

2 „Gefällt mir“

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.