如何借助 svn update 自动更新线上的web
生活随笔
收集整理的這篇文章主要介紹了
如何借助 svn update 自动更新线上的web
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
為什么80%的碼農都做不了架構師?>>> ??
? ? 1.進入到你創建的版本庫目錄下面,目錄結構大致如下
????2. 進入 hooks 目錄下,這里就是我們能夠使用的所有鉤子。要實現我的需求,只需要?post-commit.tmpl 這一個,也就是使用 svn 客戶端成功提交到倉庫之后要執行的操作
[root@xxxxxx?hooks]#?ls?-l total?40 -rw-r--r--?1?root?root?1977?Mar?22?17:15?post-commit.tmpl -rw-r--r--?1?root?root?1638?Mar?16?00:12?post-lock.tmpl -rw-r--r--?1?root?root?2289?Mar?16?00:12?post-revprop-change.tmpl -rw-r--r--?1?root?root?1567?Mar?16?00:12?post-unlock.tmpl -rw-r--r--?1?root?root?3432?Mar?16?00:12?pre-commit.tmpl -rw-r--r--?1?root?root?2416?Mar?16?00:12?pre-lock.tmpl -rw-r--r--?1?root?root?2786?Mar?16?00:12?pre-revprop-change.tmpl -rw-r--r--?1?root?root?2106?Mar?16?00:12?pre-unlock.tmpl -rw-r--r--?1?root?root?2780?Mar?16?00:12?start-commit.tmpl????3.之后如下操作
[root@xxxxxx?hooks]#?cp?post-commit.tmpl?post-commit [root@xxxxxx?hooks]#?vim?post-commit? ? 4.定位到文件底部(G),去除自帶的使用示例,根據個人需求,追加如下內容 保存退出
????5.最后賦予?post-commit 可執行權限
[root@xxxxxx?hooks]#?chmod?u+x?post-commit轉載于:https://my.oschina.net/antsky/blog/657537
《新程序員》:云原生和全面數字化實踐50位技術專家共同創作,文字、視頻、音頻交互閱讀總結
以上是生活随笔為你收集整理的如何借助 svn update 自动更新线上的web的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: PHP支付宝接口RSA验证
- 下一篇: Android handler Thre