百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
G

ginatra

> 开发工具
开源

一个用于 Git 存储库的 Web 前端

525 stars0 点赞3 次浏览
访问官网GitHub

工具介绍

一个用于 Git 存储库的 Web 前端

Ginatra

Ginatra is a simple web-based git repository browser built on Ruby Sinatra.

[ website | screenshots | demo ]

Features

  • Easy installation
  • Multiple repository support
  • Multiple branch/tag support
  • Commit history, diff, patch
  • Feeds in Atom format
  • Syntax highlighting
  • Repository stats
  • Smart HTTP support
  • and more

Installation

There are 2 ways to install Ginatra: as a packaged Ruby gem or as a Sinatra app.
It's recommended to install it as a ruby gem, unless you know what you're doing.

Ginatra gem

Run the following command to install Ginatra from RubyGems:

bash
gem install ginatra -v 4.1.0

Create config file (see Configuration section in README).

Start the Ginatra server:

bash
ginatra run

By default Ginatra will run on localhost:9797

Ginatra app

Run the following commands to install Ginatra from source:

bash
git clone git://github.com/NARKOZ/ginatra.git
cd ginatra/
git checkout v4.1.0
bundle

Create config file or modify existing (see Configuration section in README).

Start the Ginatra server:

bash
./bin/ginatra run

By default Ginatra will run on localhost:9797

Configuration

Create ~/.ginatra/config.yml file with your own settings. See config.yml for a reference.

git_dirs - Ginatra will look into these folders for git repositories. It's required to append * at the end of path. Example: /home/Development/repos/*

sitename - name of the site. Used in the page title and header.

description - description of web interface. Used in index page.

port - port that Ginatra server will run at.

host - host that Ginatra server will run at.

prefix - prefix for the host serving Ginatra. Used when Ginatra is installed in subdirectory.

git_clone_enabled? - enables smart HTTP support and allows to clone git repositories.

log_file - location of the log file where Ginatra will log warnings and errors. If this setting doesn't present Ginatra will log out to the standard output (stdout).

If you installed Ginatra as an app, you can change settings by editing config.yml file in root folder.

You need to restart web server after applying changes to config file.

CLI

You can interact with Ginatra via CLI. The following commands are available:

bash
ginatra run    # Starts Ginatra server
ginatra stop   # Stops Ginatra server
ginatra status # Checks status of the Ginatra server (running or not)
ginatra -v     # Shows version of Ginatra
ginatra -h     # Lists available commands and their options

How to Contribute

Open issues are labeled per perceived difficulty. See contributing guidelines.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Rubygitsinatraweb-appweb-application

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类开发工具
定价开源

> 相关工具

V
VS Code
流行的开源代码编辑器
G
Git
分布式版本控制系统
V
Vite
下一代前端构建工具