Created
March 15, 2016 12:33
-
-
Save erickguan/822793950e6c0ca38b4b to your computer and use it in GitHub Desktop.
展示一下 CA 证书的配置情况
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hooks: | |
before_web: | |
- exec: | |
cmd: | |
- curl -o /shared/cacerts.pem https://curl.haxx.se/ca/cacert.pem | |
- export SSL_CERT_FILE=/shared/cacerts.pem | |
- cat -n /shared/cacerts.pem | |
- ls -alh /shared | |
- 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://gems.ruby-china.org/' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment