Moving to ruby-china rubygems mirror for china template
This commit is contained in:
parent
83d224e7d0
commit
5372d62ced
|
@ -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
|
||||
|
||||
|
|
|
@ -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/'
|
||||
|
|
Loading…
Reference in New Issue