3 Star 16 Fork 3

hyjiacan / gitage

Create your Gitee Account
Explore and code with more than 8 million developers,Free private repositories !:)
Sign up
Clone or Download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

gitage

Git pages on NodeJS.

Tested on gitea for now.

Dependencies:

  • Git
  • nodejs>8

Usage

npm run build
node dist/gitage.js

Server Configuration

Config file: config (case-sensitive), should be put in the root path of gitage.

config

# DEBUG flag
DEBUG = false
# ip to host
HOST = 0.0.0.0
# port to listen
PORT = 1997
# The path to put logs file, can be absolute or relative 
LOG_PATH = logs
# The path to checkout repository, can be absolute or relative
PROJECT_ROOT_PATH = projects
# Log the messages which higher than this level
LOG_LEVEL = info
# The temporary  path to the checkout, leave it blank to use the system temp path
PROJECT_CHECKOUT_TMP = 

If no config file, the value above will be the default values.

Note: Configuration item name must be UPPERCASE

Repo Configuration

Add file gitage.config.json into your repo, in the form bellow:

{
  "type": "markdown",
  "path": "docs",
  "index": "index.html",
  "tag": true,
   "branch": "master",
   "ignore": [
     "file",
     "dir",
     "..."
   ]
}
  • type Deploy type, only markdown supported currently, or just leave it blank case-sensitive
  • path The directory to deploy (where the static assets located in), default: docs
  • index The index file to deploy,default: index.html/index.md case-sensitive
  • tag Whether to deploy only on tag pushed,default: false (planning)

Add web-hook on your repository:

POST http://127.0.0.1:1997/hook/

127.0.0.1 The IP to serve 1997 The port to serve

Screenshots

1

2

Repository Comments ( 2 )

Sign in to post a comment

About

基于 NodeJS 的 git-pages 服务 expand collapse
NodeJS and 3 more languages
MIT
Cancel

Releases (1)

All

gitage

Contributors

All

Activities

Load More
can not load any more
NodeJS
1
https://gitee.com/hyjiacan/gitage.git
git@gitee.com:hyjiacan/gitage.git
hyjiacan
gitage
gitage
master

Search