Tag: openshift client tools

设置redis ENVvariables – 在Openshift上的Node.js

我从Heroku迁移到Openshift,因为我的应用程序大量使用socket.io。 我似乎已经正确地连接了redis,但只是想确认一下。 当我input这个: rhc cartridge-status redis -a myapp 我得到这个: Using smarterclayton-redis-2.6 (Redis) for 'redis' RESULT: Redis is running master (receives writes), mode sharded Connect to: xxhostnumberxx-myapp.rhcloud.com:xxportnumberxx password:xxsomepasswordxx 然后我设置ENVvariables如下所示: rhc set-env OPENSHIFT_REDIS_HOST=xxhostnumberxx-myapp.rhcloud.com -a myapp rhc set-env OPENSHIFT_REDIS_PORT=com:xxportnumberxx -a myapp rhc set-env REDIS_PASSWORD=password:xxsomepasswordxx -a myapp 然后在我的app.js中我有: var redis; // Openshift redis connection if (process.env.OPENSHIFT_REDIS_HOST) { var redisHost […]

使用openshift nodejs应用程序接收“SSL_connect returned = 1 errno = 0 state = SSLv3读取服务器hello A:sslv3警报握手失败”

我在openshift上有一个nodejs应用程序,我们在本地开发时使用rhc port-forward命令连接到我们的数据库。 我们已经实施护照通过谷歌和通过Facebookvalidation用户。 我已经证实了我的自我,我们仍然可以使用rhc命令。 我的合作伙伴最近通过脸书证实了自己,不久之后(〜1周),我们得到了这个错误。 不知道这是否是完全相关的,但包括它可以不伤害。 Connection to openshift.redhat.com failed: A secure connection could not be established to the server (SSL_connect returned=1 errno=0 state=SSLv3 read server hello A: sslv3 alert handshake failure). You may disable secure connections to your server with the -k (or –insecure) option 'https://openshift.redhat.com/broker/rest/api'. If your server is using a self-signed certificate, […]