我創建了一個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拋出的錯誤 –