我有一个小问题,我试图在openshift上安装mbaas“baasbox”,我得到503页,它可能是什么?
这是我跟随here
的教程rhc尾巴给我
[2014-04-11 01:13:50] INFO WEBrick 1.3.1
[2014-04-11 01:13:50] INFO ruby 1.8.7 (2011-06-30) [x86_64-linux]
[2014-04-11 01:13:50] INFO WEBrick::HTTPServer#start: pid=398035 port=8080
127.8.255.129 - - [11/Apr/2014:01:14:27 EDT] "GET / HTTP/1.1" 200 39915
-> / 127.8.255.129 - - [11/Apr/2014:01:54:06 EDT] "GET / HTTP/1.1" 304 0
-> / [2014-04-11 01:57:39] INFO going to shutdown ... [2014-04-11 01:57:39] INFO WEBrick::HTTPServer#start done.
以下是起始文件的内容
BASEDIR=$(dirname $0)
$BASEDIR/stop
rm $OPENSHIFT_REPO_DIR/bin/RUNNING_PID
nohup java -Dorient.baasbox.path=$OPENSHIFT_DATA_DIR/baasbox -Dorient.baasbox.admin_password=admin -Dapplication.code=1234567890 -Dhttp.port=$OPENSHIFT_DIY_PORT -Dhttp.address=$OPENSHIFT_DIY_IP $* -cp "$OPENSHIFT_REPO_DIR/bin/lib/*" play.core.server.NettyServer $OPENSHIFT_REPO_DIR/bin $OPENSHIFT_DIY_LOG_DIR/baasbox.log > $OPENSHIFT_DIY_LOG_DIR/nohup.log 2>&1 &
答案 0 :(得分:0)
baasbox启动文件中存在问题。 这是完整的问题https://github.com/baasbox/baasbox/issues/303
起始文件在baasbox repo中更新,这是新的。
BASEDIR=$(dirname $0)
$BASEDIR/stop
rm $OPENSHIFT_REPO_DIR/bin/RUNNING_PID
nohup java -Dorient.baasbox.path=$OPENSHIFT_DATA_DIR/baasbox -Dorient.baasbox.admin_password=admin -Dapplication.code=1234567890 -Dhttp.port=$OPENSHIFT_DIY_PORT -Dhttp.address=$OPENSHIFT_DIY_IP $* -cp "$OPENSHIFT_REPO_DIR/bin/lib/*" play.core.server.NettyServer $OPENSHIFT_REPO_DIR/bin $OPENSHIFT_DIY_LOG_DIR/baasbox.log &