在通过git推送文件后如何使用Openshift服务器上的文件可执行文件 [英] How to use to make a file executable on Openshift server after pushing it via git
问题描述
在原始波塞尔发现这里。
我想确保我的index.cgi被设置为755,即使我把文件推送到git。
这没有发生,基于我明白的umask的文件权限被设置为700.
The original poser is found here. I want to ensure my index.cgi is set to 755, even afer i push files to git. This is not happening and the file permission , based on the umask i understand is getting set to 700.
我无法创建更新后的脚本在服务器上,由于设置了权限,该服务器将保存在openshift / hooks位置。
I am unable to create the post-update script on the server , which is to be kept at openshift/hooks location, due to the set permissions.
所以,我使用 action hooks 来完成这项工作。
So i tried using action hooks to do the job.
我在我的action hooks本地文件夹中创建了一个名为stop的文件。
在此之后,我将索引文件推送到服务器。
I created a file named stop in my action hooks local folder. Following this i pushed my index file to the server.
我的索引文件仍显示权限为700.
我该如何解决这个问题?
My index file still shows permission as 700. How can i resolve this ?
推荐答案
尝试在git中更新权限。
Try updating the permissions in git.
git update-index --chmod=<permissions> <your_file>
这篇关于在通过git推送文件后如何使用Openshift服务器上的文件可执行文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!