OpenShift の Java 環境で WildFly アプリケーション サーバーを使用しています。私のpom.xml
ファイルでは、実行するように指定しましたbower install
(を使用exec-maven-plugin
)。
で実行bower install
するexec-maven-plugin
には、オペレーティング システムに Bower が存在する必要がありますが、デフォルトでは、私の OpenShift インスタンスには Node.js と Bower がインストールされていません。
アクションフックごとにBowerを取り付けることはできますか?
「ビルド前のアクションフック」で次のことを試しました。
/.openshift/action_hooks/pre_build
#!/bin/bash
npm install -g bower
また、次のことも実行しました。
git update-index --chmod=+x .openshift/action_hooks/pre_build
しかし、私のアクションフックは実行されていないようです:
Not stopping cartridge wildfly because hot deploy is enabled
Repairing links for 1 deployments
Syncing git content to other proxy gears
Building git ref 'master', commit f330f6d
No such file or directory - /var/lib/openshift/54e8f8984382ecc9a1000047/app-root/runtime/repo/.openshift/action_hooks/pre_build