https://developer.cloudbees.com/bin/view/RUN/Playframeworkの指示に従って、デプロイできます。ただし、application.conf のみを使用します。
私のアプリ ID は「mrm」なので、conf ディレクトリに「mrm.conf」を作成しました。
次に、「play cloudbees-deploy-config mrm」を試しましたが、デプロイ後に次のエラー メッセージが表示されます。
[success] Total time: 110 s, completed Mar 15, 2013 9:08:36 PM
[error] Not a valid command: mrm (similar: run)
[error] Expected '/'
[error] Expected ':'
[error] Not a valid key: mrm (similar: run)
[error] mrm
そして、展開はまだapplication.confを使用しています
それから play を実行して、次のように入力しました: "cloudbees-deploy-config mrm"
私の「mrm.conf」にはこれが含まれています:
include "application.conf"
cloudbees.applicationId=mrm
このプルリクエストで説明されている手順に従ってみました: https://github.com/CloudBees-community/sbt-cloudbees-play-plugin/pull/1
play help によると、次のようにできるはずです:
cloudbees-deploy-config
Deploy a configuration of your app to a Run@Cloud app id. Arguments are:
(1) the base name of a conf file in your project's conf directory, defaulting to "application"/
(2) Optional. The application id to which this configuration should deploy. You can omit this
arg if you have either set cloudbees.applicationId in the config file from the first
arg or have set the project ID in your PlayProject.
Example usage: `> cloudbees-deploy-config live`, where live.conf exists in the project's conf/
directory and contains a key cloudbees.applicationId.
私が間違っている可能性のあることのヒントはありますか? cloudbees デプロイメントで mrm.conf を使用する必要があります...
答え:
play "cloudbees-deploy-config mrm"
更新: ソリューションの概要をブログに投稿しました: http://www.poornerd.com/2013/04/08/how-deploy-play-framework-apps-with-different-configurations-to-cloudbees/