[Gitiles]Git伺服器的一鍵式搭建

來源:互聯網
上載者:User

參考資料:

http://hron.me/blog/2013/01/gitiles-install-howto/

https://android.googlesource.com/

https://code.google.com/p/gitiles/

本人改寫後的Gitiles:https://github.com/airk000/Gitiles_one_click

優點:配置簡單,一鍵式搭建,方便快捷。

使用方法:

1.將項目clone到本地

2.按照gitiles.config.sample書寫自己的設定檔gitiles.config

[gitiles]    # Repositories placed here    basePath = /srv/git/repositories    //你的git項目所在的根目錄    # Do not check they are exported    exportAll = true    # This URL will be displayed as clone URL. DO NOT FORGET TRAILING SLASH!    baseGitUrl = ssh://cr.hron.me:29418/    //顯示在git clone處的地址    # Title of site (doh)    siteTitle  = Gitiles - kingmax.hron.me:/srv/git/repositories    //網頁Title    # I dunno why, but it is have to be configured.    canonicalHostName = kingmax.hron.me    //好吧,作者不知道為什麼,我也不知道……反正就是要設定

3.開始

./tools/run_dev.sh start

服務就在後台執行了。可以訪問本地地址進行測試:127.0.0.7:8080

4.結束

./tools/run_dev.sh stop

服務關閉。

PS:感謝博主 Gábor Garami 提供的使用協助。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.