应用引擎是否具有部署挂钩或事件? [英] Does app engine have a Deploy Hook or Event?

查看:63
本文介绍了应用引擎是否具有部署挂钩或事件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每当有新的部署到服务器时,我想增加模型上的版本号。
所以这背后的想法是:每次有一个部署我想运行​​一些代码。

这可能在App Engine中使用钩子或事件吗? p>

我使用App Engine for Python。

解决方案

/ p>

但是,如果您编写自己的部署脚本,则可以获得所需的行为。这个脚本可以是 appcfg.py 的一个简单包装器,它在部署完成后向您的应用程序发出请求(请求处理程序可以执行您希望放入您的逻辑部署钩子)。


I want to increase the version number on a model whenever there is a new deployment to the server. So the idea behind this is: Everytime there is a deployment I wanna run some code.

Is this possible within App Engine using hooks or events?

I'm using App Engine for Python.

解决方案

No.

However, you could get the desired behavior if you write your own deployment script. This script could be a thin wrapper around appcfg.py which makes a request to your app once the deployment is complete (the request handler can execute the logic you wanted to put in your "deploy hook").

这篇关于应用引擎是否具有部署挂钩或事件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆