簡體中文 ▾
主題 ▾
最新版本 ▾ git-instaweb 最後更新於 2.21.0
git-instaweb 手冊中的更改
設定和配置
獲取和建立專案
基本快照
分支與合併
共享和更新專案
檢查和比較
打補丁
除錯
電子郵件
外部系統
伺服器管理
指南
管理
底層命令
- 2.21.1 → 2.50.1 無更改
-
2.21.0
2019-02-24
- 2.10.5 → 2.20.5 無更改
-
2.9.5
2017-07-30
- 2.5.6 → 2.8.6 無更改
-
2.4.12
2017-05-05
- 2.1.4 → 2.3.10 無更改
-
2.0.5
2014-12-17
概要
git instaweb [--local] [--httpd=<httpd>] [--port=<port>] [--browser=<browser>] git instaweb [--start] [--stop] [--restart]
選項
- -l
- --local
-
只將 Web 伺服器繫結到本地 IP (127.0.0.1)。
- -d
- --httpd
-
將要執行的 HTTP 守護程序命令列。命令列選項可以在此處指定,配置檔案將新增到命令列的末尾。目前支援 apache2、lighttpd、mongoose、plackup、python 和 webrick。(預設值:lighttpd)
- -m
- --module-path
-
模組路徑(僅當 httpd 是 Apache 時才需要)。(預設值:/usr/lib/apache2/modules)
- -p
- --port
-
httpd 要繫結的埠號。(預設值:1234)
- -b
- --browser
-
用於檢視 gitweb 頁面的 Web 瀏覽器。此選項將與 gitweb 例項的 URL 一起傳遞給 git web--browse 輔助指令碼。有關此內容的更多資訊,請參閱 git-web--browse[1]。如果指令碼失敗,URL 將列印到標準輸出。
- start
- --start
-
啟動 httpd 例項並退出。根據需要重新生成配置檔案以啟動新例項。
- stop
- --stop
-
停止 httpd 例項並退出。這不會為啟動新例項生成任何配置檔案,也不會關閉瀏覽器。
- restart
- --restart
-
重新啟動 httpd 例項並退出。根據需要重新生成配置檔案以啟動新例項。
配置
你可以在 .git/config 中指定配置
[instaweb] local = true httpd = apache2 -f port = 4321 browser = konqueror modulePath = /usr/lib/apache2/modules
如果配置變數 instaweb.browser
未設定,則在定義 web.browser
時將使用它。有關此內容的更多資訊,請參閱 git-web--browse[1]。