##oschina-hook
A simple tool to pull code from oschina with webhook of oschina
####Description
This project aims to update your code automatically when you push data to oschina.
This project consists of two parts: The first part listens to a specifical port for POST request from
git-oschina-hook, and then publish message; The second part subscribes to the channel and executes
the script(automate.sh
).
####Useage
-
You need to have redis-server installed(used for message delivery).
-
Install dependences with
pip install -r requirements.txt
(recommend usingvirtualenv
). -
Update the password(reserved in hook on oschina) in
setting_sample.py
, then rename tosetting.py
. -
Edit
automate.sh
(script which will be executed when you push to remote repo on oschina) as you wish. -
Run
python2 app.py
andpython automate.py
on your server.
####License
MIT