Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/django/20.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/20.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Django uWSGI-生产触摸重新加载git提交_Django_Git_Service_Production Environment_Uwsgi - Fatal编程技术网

Django uWSGI-生产触摸重新加载git提交

Django uWSGI-生产触摸重新加载git提交,django,git,service,production-environment,uwsgi,Django,Git,Service,Production Environment,Uwsgi,我有一个基于Django/nginx/uWSGI的应用程序 每当主分支被修改时,我希望我的生产服务器重新加载uWSGI 我想知道使用一些git文件来实现这一点是否是一个好的实践 [uwsgi] #... touch-reload = .git/index 由于我也在使用它来自动化部署,也许最好是触摸uwsig模块 你觉得怎么样 touch-reload = .git/index 结果工作得很好

我有一个基于Django/nginx/uWSGI的应用程序

每当主分支被修改时,我希望我的生产服务器重新加载uWSGI

我想知道使用一些git文件来实现这一点是否是一个好的实践

[uwsgi]
#...
touch-reload = .git/index
由于我也在使用它来自动化部署,也许最好是触摸uwsig模块

你觉得怎么样

touch-reload = .git/index
结果工作得很好