ginatra

A web frontend for Git repositories

Github星跟踪图

Ginatra

Build Status
Code Climate
Gem Version
License

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:

gem install ginatra -v 4.1.0

Create config file (see Configuration section in README).

Start the Ginatra server:

ginatra run

By default Ginatra will run on localhost:9797

Ginatra app

Run the following commands to install Ginatra from source:

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:

./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:

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
.

主要指标

概览
名称与所有者NARKOZ/ginatra
主编程语言Ruby
编程语言Ruby (语言数: 4)
平台
许可证Other
所有者活动
创建于2009-05-08 22:31:15
推送于2022-05-27 17:41:51
最后一次提交2019-12-19 13:24:09
发布数21
最新版本名称v4.1.0 (发布于 2015-04-19 21:06:37)
第一版名称0.9.9 (发布于 2009-05-11 14:31:46)
用户参与
星数526
关注者数18
派生数65
提交数408
已启用问题?
问题数40
打开的问题数7
拉请求数4
打开的拉请求数7
关闭的拉请求数4
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?