rubygems.org hosts its resource in Amazon S3 which is disturbed by GFW. So gem and bundle complain from time to time.
This guide assumes you used docker installation. This guide also has a version in Chinese. 中文指南
Add a template
Open your congiruation file, say, app.yml.
Add a reference to the china template:
templates:
- "templates/postgres.template.yml"
- "templates/redis.template.yml"
- "templates/sshd.template.yml"
- "templates/web.template.yml"
- "templates/web.china.yml"
Bootstrap docker container
Rebuild your app
./launcher rebuild app
Or bootstrap:
./launcher bootstrap app
You are done! Everything should work then.
7 إعجابات
xhh
(Xu Hui Hui)
1 يونيو 2015، 7:42ص
7
I think the template file’s path should be “templates/web.china.template.yml”.
إعجاب واحد (1)
ntrrobng
(Kevin Sweeney)
31 مارس 2016، 1:01ص
8
it looks like this suggestion has been implemented. could you update the original topic so that it reflects the appropriate fix?
إعجابَين (2)
Hyan
(Hyan)
21 يناير 2021، 7:15ص
9
مرحبًا @fantasticfears ، شكرًا لمشاركة هذه النصائح. سأقوم باستضافة Discourse بنفسي لتجنب مشاكل الاستضافة من قبل Discourse، مثل الحظر عن الوصول ومشاكل الأداء.
هل تعرف ما إذا كان كود مصدر Discourse نفسه يحتوي على أي طلبات خدمة محجوبة بواسطة الجدار الناري العظيم؟ إذا كان الأمر كذلك، فإن الاستضافة الذاتية لا تضمن الخدمة في البر الرئيسي للصين.
ملاحظة: https://meta.discoursecn.org/t/discourse/28 غير متاح حاليًا.