0

我正在使用新的部署 fortrabbit.yml 文件来触发提交后挂钩。之前,git webcall 挂钩 ( http://fortrabbit.com/docs/in-depth/git-hooks/webcall ) 为我提供了有关实际提交的信息。我现在如何 ( http://fortrabbit.com/docs/in-depth/deployment-file ) 访问这些信息?我想知道提交 ID(例如 40cede3910db6ba0140993ae0d33376ff5df7483)。提前致谢!

4

1 回答 1

1

网络呼叫挂钩继续存在于新的部署fortrabbit.yml文件中。只需使用 post-deploy 钩子并设置一个 url,如下所示:

post-deploy:


    # alternatively/additionally an URL can be specified which is called after
    #   deployment
    url: http://domain.tld/callback

    # token which will be send as request header `X-Frbit-Token` to verify that
    #   the request originated from this post-deploy call (defaults to "unset")
    token: your-own-token

在您的回调中,您会收到提交 ID: http: //fortrabbit.com/docs/in-depth/git-hooks/webcall#the-callback-url

于 2014-03-26T12:56:25.810 回答