我试图通过CLI(使用heroku的Toolbelt)连接到heroku,我无法这样做。 当我input我的凭据,heroku回复:
Post https://api.heroku.com/login: x509: certificate signed by unknown authority
我在公司的防火墙内,阻止大多数连接,我必须使用证书进行导航。
我能通过clilogin到heroku吗?
您需要设置您的代理,然后发出herokulogin命令
来源: https : //devcenter.heroku.com/articles/using-the-cli#using-an-http-proxy
使用HTTP代理如果您位于需要使用代理与外部HTTP / HTTPS服务连接的防火墙之后,则可以在运行heroku命令之前在本地开发人员环境中设置HTTP_PROXY或HTTPS_PROXY环境variables。 例如,在Unix系统上,你可以这样做:
$ export HTTP_PROXY=http://proxy.server.com:portnumber or $ export HTTPS_PROXY=https://proxy.server.com:portnumber $ heroku login
在Windows机器上,将其设置在“系统属性/环境variables”中,或者从terminal执行:
> set HTTP_PROXY=http://proxy.server.com:portnumber or > set HTTPS_PROXY=https://proxy.server.com:portnumber > heroku login