我的grunt build
任务创建了我的项目所依赖的/dist/
。我不想在我的存储库中包含构建的文件。我宁愿使用Jenkins来允许在我的项目上进行持续集成。这是我在我的.openshift/action_hooks/build
,我不知道为什么它没有运行:在OpenShift Build之前运行Grunt Build
echo " >>>>>>>>> Building with grunt..."
grunt build
echo " >>>>>>>>> Finished building with grunt..."
我知道它没有运行,因为我不看那些回应线路中的詹金斯建立日志或应用程序日志(rhc tail <app-name>
)。
此外,当我ssh到服务器,并尝试手动运行grunt build
,它是无法找到繁重的命令,所以这让我怀疑这是否是可能的...
我应该只包括我的回购中的内置文件?如果是这样,OpenShift何时会解决这个问题? :)
让我知道如果我做错了什么。谢谢!
这应该是''postinstall“:”export HOME = app-root/runtime/repo; ./node_modules/grunt-cli/bin/grunt prod“ – laggingreflex