【问题标题】:Openshift: action_hook "start" is not executedOpenshift:action_hook“start”未执行
【发布时间】:2014-03-07 23:10:54
【问题描述】:

我有一个 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

怎么了?

【问题讨论】:

    标签: openshift


    【解决方案1】:

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

    【讨论】:

      【解决方案2】:

      您确定挂钩设置了 +x 位吗?

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

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2021-07-28
        • 2018-10-28
        • 2021-10-03
        • 2017-11-13
        • 2019-07-22
        • 2013-11-06
        • 2021-01-06
        相关资源
        最近更新 更多