A way to serve git repos through ssh and http protocol like Github.
You can install requirements from requirements.txt with pip install -r requirements.txt
.
- support git clone/push/pull with ssh and http protocol.
- auth by pub key, you can write your own verify code to use mysql and others easily.
- people always like coroutine, powered by gevent.
- safely, only allow commands in white list.
Firstly, you have to install requirements and maria itself in your python environment like:
pip install -r requirements
python setup.py develop
Then, you can find example in examples dir. In simple case, maria
will start Maria System.
You also can specify options by yourself like maria --debug
or maria -b 0.0.0.0:2200
.
Get options define use this command maria -h
.
And maria -k host.key -b 127.0.0.1:2200 -w async run_socket:app
will start maria system with all examples.
Anyway, I think single process will be ok in production environment with supervisord or something like that.
$ cd /path/to/maria/tests
$ python test_maria.py
First, nosetests is required. Get it:
# pip install nose
Then, this will run tests:
$ cd /path/to/maria/tests
$ nosetests -v
I disable gevent subprocess monkey patch because I found the execute command function can not exit as I expect, can anyone test it?