Skip to content

Instantly share code, notes, and snippets.

@erickguan
Created March 15, 2016 12:33
Show Gist options
  • Save erickguan/822793950e6c0ca38b4b to your computer and use it in GitHub Desktop.
Save erickguan/822793950e6c0ca38b4b to your computer and use it in GitHub Desktop.
展示一下 CA 证书的配置情况
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