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
Falco
(Falco)
May 4, 2022, 4:39pm
5
We have a guide on this, see:
If you want to install themes via your app.yml, use the following format:
run:
- exec: echo "Beginning of custom commands"
- file:
path: /tmp/mythemes.yml
contents: |
discourse-gifs:
url: https://github.com/discourse/discourse-gifs.git
add_to_all_themes: true
- exec:
cd: $home
cmd: su discourse -c 'bundle exec rake themes:install < /tmp/mythemes.yml'
- exec: echo "End of custom commands"
2 Likes
Would that work if you can’t access GitHub?
2 Likes
yes. Local device installation works .
2 Likes
system
(system)
Closed
June 4, 2022, 3:58am
8
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.