Moving to ruby-china rubygems mirror for china template
authorErick Guan <fantasticfears@gmail.com>
Sat, 12 Mar 2016 18:46:29 +0000 (19:46 +0100)
committerErick Guan <fantasticfears@gmail.com>
Sun, 13 Mar 2016 12:16:10 +0000 (13:16 +0100)
README.md
templates/web.china.template.yml

index 6a42b47f89c5f2b2ca0e45880cb3577787e23a55..903b8c50a5cf80f14e49109fb27acd185c62a774 100644 (file)
--- 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
 
index a057677b88e6797cc761d6e40e01087cd1f7766f..983f289c69d4fda99749629c527f39be3604ebb4 100644 (file)
@@ -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/'