How to install theme component with app.yaml or from local device?

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 Like

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 Like

We have a guide on this, see:

2 Likes

Would that work if you can’t access GitHub?

2 Likes

yes. Local device installation works .

2 Likes

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