Sostituisci rubygems.org con il mirror di Taobao per risolvere l'errore di rete in Cina

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 Mi Piace

I think the template file’s path should be “templates/web.china.template.yml”.

1 Mi Piace

it looks like this suggestion has been implemented. could you update the original topic so that it reflects the appropriate fix?

2 Mi Piace

Ciao @fantasticfears, grazie per aver condiviso questi consigli. Sto pensando di ospitare Discourse in autonomia per evitare problemi legati all’hosting di Discourse, come blocchi nell’accesso e problemi di prestazioni.
Sai se il codice sorgente di Discourse stesso effettua richieste di servizio bloccate dal Great Firewall? Se è così, un’installazione in autonomia non può garantire il servizio nella Cina continentale.

ps. https://meta.discoursecn.org/t/discourse/28 non è attualmente disponibile.