From 5372d62ced67a7472a87a8e875146270499beb97 Mon Sep 17 00:00:00 2001 From: Erick Guan Date: Sat, 12 Mar 2016 19:46:29 +0100 Subject: [PATCH] Moving to ruby-china rubygems mirror for china template --- README.md | 2 +- templates/web.china.template.yml | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 6a42b47..903b8c5 100644 --- a/README.md +++ b/README.md @@ -172,7 +172,7 @@ installs you can ensure they are in sync by looking at `/etc/passwd` and - [Setting up SSL with Discourse Docker](https://meta.discourse.org/t/allowing-ssl-for-your-discourse-docker-setup/13847) - [Multisite configuration with Docker](https://meta.discourse.org/t/multisite-configuration-with-docker/14084) - [Linking containers for a multiple container setup](https://meta.discourse.org/t/linking-containers-for-a-multiple-container-setup/20867) -- [Replace rubygems.org with taobao mirror to resolve network error in China](https://meta.discourse.org/t/replace-rubygems-org-with-taobao-mirror-to-resolve-network-error-in-china/21988/1) +- [Using Rubygems mirror to improve connection problem in China](https://meta.discourse.org/t/replace-rubygems-org-with-taobao-mirror-to-resolve-network-error-in-china/21988/1) ### Developing with Vagrant diff --git a/templates/web.china.template.yml b/templates/web.china.template.yml index a057677..983f289 100644 --- a/templates/web.china.template.yml +++ b/templates/web.china.template.yml @@ -2,10 +2,9 @@ hooks: before_web: - exec: cmd: - - gem sources --remove https://rubygems.org/ - - gem sources -a https://ruby.taobao.org/ + - gem sources --add https://gems.ruby-china.org/ --remove https://rubygems.org/ before_bundle_exec: - exec: cmd: - - su discourse -c 'bundle config mirror.https://rubygems.org https://ruby.taobao.org/' + - su discourse -c 'bundle config mirror.https://rubygems.org https://gems.ruby-china.org/' -- 2.25.1