خادم Discourse الخاص بي موجود في K8s.
هل يمكنني تثبيت مكون سمة (على سبيل المثال discoTOC) باستخدام تكوين app.yaml أدناه؟ إذا لم يكن الأمر كذلك، فكيف يمكنني التثبيت من جهازي المحلي؟ (لا يُسمح لـ k8s بالوصول إلى github).
hooks:
after_code:
- exec:
cd: $home/plugins
cmd:
- git clone https://github.com/discourse/xxx.git
لقد حاولت تثبيت discoTOC (تنزيل من github) من جهاز محلي ولكن ظهر الخطأ التالي
خطأ في الاستيراد: about.json غير موجود، أو غير صالح. هل أنت متأكد من أن هذه سمة Discourse؟
لقد جربت نفس الشيء على موقع الاختبار الخاص بي ونجح الأمر معي؟ هل حصلت على الملف الصحيح؟
https://github.com/discourse/DiscoTOC
إعجاب واحد (1)
شكرا على ردك. لقد نجح الأمر.
النقطة هي استخدام ملف مضغوط تم تنزيله من GitHub.
فك الضغط وإعادة الضغط لا يعمل على MAC
إعجاب واحد (1)
Falco
(Falco)
4 مايو 2022، 4:39م
5
لدينا دليل حول هذا الموضوع، انظر:
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)
هل سينجح ذلك إذا لم تتمكن من الوصول إلى GitHub؟
إعجابَين (2)
نعم. يعمل تثبيت الجهاز المحلي.
إعجابَين (2)
system
(system)
تم إغلاقه في
4 يونيو 2022، 3:58ص
8
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.