2016-02-07 56 views
0

我試圖部署的Liferay-buildpack通過向Bluemix健康檢查的超時時間內連接:Bluemix buildpack爲的Liferay/Tomcat的:無法接受

git clone https://github.com/shinji62/liferay-buildpack <br/> 
cd liferay-buildpack <br/> 
cf api https://api.ng.bluemix.net <br/> 
cf login <br/> 
    Email> xxxxxxx <br/> 
    Password> xxxxxx <br/> 
cf push liferaytest201602 -c 'bin/startup.sh' -p . <br/> 

但部署失敗,我無法啓動Liferay的這些錯誤:

... 
"exit_description"=>"failed to accept connections within health check timeout", "crash_timestamp"=>1454828817} 
... 

這似乎是有錯誤的端口收聽設置。

有人請幫助,讓我知道如何解決這個問題?

感謝和問候,

藤原彰

-----添加信息-----

非常感謝您的評論。 我重新嘗試如下:

tar xvf liferay-portal-tomcat-6.2-ce-ga6-20160112152609836.zip 
cd liferay-portal-6.2-ce-ga6  
cf api http://api.ng.bluemix.net 
cf login  
    Email> xxxxxxx 
    Password> xxxxxxx 

cf push akiraliferay -b https://github.com/shinji62/liferay-buildpack -c 'tomcat-7.0.62/bin/startup.sh’ . 

但出現錯誤,如:

  1. 下載的Liferay從https://www.liferay.com/en/downloads/liferay-portal/available-releases

  2. 命令捆綁了Tomcat的zip文件:

    [Buildpack]      ERROR Compile failed with exception 
    #<RuntimeError: No container can run this application. Please ensure 
    that you’ve pushed a valid JVM artifact or artifacts using the -p 
    command line argument or path manifest entry. Information about valid 
    JVM artifacts can be found at 
    https://github.com/cloudfoundry/java-buildpack#additional-documentation. > 
    

    我也試過:

    cf push akiraliferay -b https://github.com/shinji62/liferay-buildpack -c 'tomcat-7.0.62/bin/startup.sh’ 
    

    但結果是一樣的。

    你能幫我解決嗎? 我很感激,如果你幫我解決這個問題。

    問候,

    藤原彰

+0

感謝您的回答,我編輯它額外的問題。 –

回答

0

您不能buildpack推到Bluemix。 buildpack爲您的應用程序提供了框架。您可以推送應用程序並指定您希望Bluemix/CloudFoundry用來運行該應用程序的buildpack。

cf push <appName> -b <buildpack> -p <path of your app>

例如:

cf push myliferayapp -b https://github.com/shinji62/liferay-buildpack -p target/myliferayapp.war