我创建了一个DIY盒,因为我需要运行在PHP 5.6中运行的应用程序,我遵循了这个链接的说明:How to install Nginx on OpenShift如何在OpenShift上设置Nginx?
不过,我收到此错误:“服务暂时无法使用 服务器暂时由于维护停机或容量问题而无法处理您的请求,请稍后再试 Apache/2.2.15(Red Hat)服务器在myapp.rhcloud.com端口80“
我认为错误可能与.openshift/action_hooks/start script:
#!/bin/bash
# The logic to start up your application should be put in this
# script. The application will work only if it binds to
# $OPENSHIFT_DIY_IP:8080
#nohup $OPENSHIFT_REPO_DIR/diy/testrubyserver.rb $OPENSHIFT_DIY_IP $OPENSHIFT_REPO_DIR/diy |& /usr/bin/logshifter -tag diy &
# replace the $OPENSHIFT_INTERNAL_IP and $OPENSHIFT_INTERNAL_PORT before starting up the server
sed -e "s/`echo '$OPENSHIFT_IP:$OPENSHIFT_PORT'`/`echo $OPENSHIFT_DIY_IP:$OPENSHIFT_DIY_PORT`/" $OPENSHIFT_DATA_DIR/conf/nginx.conf.template > $OPENSHIFT_DATA_DIR/conf/nginx.conf
nohup $OPENSHIFT_DATA_DIR/sbin/nginx > $OPENSHIFT_DIY_LOG_DIR/server.log 2>&1 &
当我运行RHC尾-a MYAPP
Unable to connect to the server (getaddrinfo: Temporary failure in name
resolution (https://openshift.redhat.com:443)). Check that you have correctly
specified your OpenShift server 'https://openshift.redhat.com/broker/rest/api'.
可能是错了呢?谢谢。
我收到:“服务暂时不可用”http://myapp.rhcloud.com/broker/rest/api –
是的,Nginx抛出的错误 –