我正在使用免費的雲代工帳戶。今天我試着推出我的Play 2.2應用程序,但它拒絕開始,消息是Unable to detect a supported application type (RuntimeError)
。當將Play Framework 2.2應用發佈到CloudFoundry時,VMC無法檢測應用類型
部署在the official documentation.
描述有沒有人還沒有得到這個工作的應用程序到Cloud Foundry是做什麼?
以下是完整的錯誤消息:
Preparing to start ***... OK
-----> Downloaded app package (38M)
/var/vcap/packages/dea_next/buildpacks/lib/buildpack.rb:94:in `build_pack': Unable to detect a supported application type (RuntimeError)
from /var/vcap/packages/dea_next/buildpacks/lib/buildpack.rb:72:in `block in compile_with_timeout'
from /usr/lib/ruby/1.9.1/timeout.rb:68:in `timeout'
from /var/vcap/packages/dea_next/buildpacks/lib/buildpack.rb:71:in `compile_with_timeout'
from /var/vcap/packages/dea_next/buildpacks/lib/buildpack.rb:53:in `block in stage_application'
from /var/vcap/packages/dea_next/buildpacks/lib/buildpack.rb:49:in `chdir'
from /var/vcap/packages/dea_next/buildpacks/lib/buildpack.rb:49:in `stage_application'
from /var/vcap/packages/dea_next/buildpacks/bin/run:10:in `<main>'
Checking status of app '***'...Application failed to stage
編輯:我張貼的問題的官方郵件列表上。還沒有答案。但這裏是重現該問題的步驟:
- 創建一個新的遊戲2.2的應用程序(
play new version22
) - cd進入app目錄(
cd version22
) - 建設項目(
play dist
) - 推應用到Cloud Foundry(
cf push --path=target/universal/version22-1.0-SNAPSHOT.zip
) - 只需選擇默認值 - 爆炸
我想這是由new Feature (What's new in Play 2.2?)引起的新的階段和dist任務改變了應用程序的包裝。這可能會導致雲代工問題檢測到應用程序類型。
在Play 2.2.0和任何雲代工變體中遇到同樣的問題。 – andraus