Openshift:不执行action_hook“start”

时间:2014-03-07 23:10:54

标签: openshift

我有一个DIY应用程序和以下问题:action_hook“start”不再执行,我不知道为什么。

#!/bin/bash
echo "STARRRT"

git push之后的输出:

> remote: Stopping DIY cartridge remote: CLIENT_RESULT: Application is
> already stopped remote: Building git ref 'master', commit 828e522
> remote: Preparing build for deployment remote: Deployment id is
> 44438b26 remote: Activating deployment remote: Starting DIY cartridge
> remote: ------------------------- remote: Git Post-Receive Result:
> success remote: Activation status: success remote: Deployment
> completed with status: success

怎么了?

2 个答案:

答案 0 :(得分:0)

这些是有效的action_hooks(https://www.openshift.com/developers/deploying-and-building-applications)以及pre_start_ruby等特定的一些盒式磁带。

答案 1 :(得分:0)

你确定钩子设置了+ x位吗?

我使用Windows,并且使用+ X设置挂钩的唯一方法是结帐到Cygwin或使用git命令git update-index --chmod=+x <file>