簡単な答えがあると確信しています。このプログラムは実行可能な jar ファイルであり、そのためのシェル スクリプト ラッパーがあります。
- OpsWorks が S3 から配布用の zip ファイルを取得します
- それを解凍して、次の場所にあるスクリプト ファイルを実行しようとしています。
bin/run_server.sh
私は現在、「その他」タイプのレイヤーで実行される、カスタムデプロイレシピを作成する道を進んでいます。
これが私の試みです:
include_recipe 'deploy'
node[:deploy].each do |application, deploy|
# assume the zip file has been extracted at this point,
# and the CWD is the extracted contents
execute "run the server" do
command 'bash bin/run_server.sh'
action :run
end
end
これは、 が見つからないと主張して失敗しますbin/run_server.sh
。
前もって感謝します。