LINE Notify Gateway for Github Enterprise.
(Of course, you can use not only Github Enterprise but also Github.)
,-----------------.
|Github Enterprise|
`-----------------'
|
| Send webhook.
▽
,---------------.
|ghe-line-notify| Receive Webhook and render message text.
`---------------'
|
| Call LINE Notify API.
▽
,-----------.
|LINE Notify|
`-----------'
- Python 3.x (3.5.x recomended)
- (pip)
git clone https://github.com/be-hase/ghe-line-notify
cd ghe-line-notify
pip install -r requirements/common.txt
python manage.py db upgrade
Default uses sqlite, and creates sqlite's db file at ~/.ghe-line-notif/app.db
.
python run_dev_server.py
gunicorn -c gunicorn_config.py app:app
heroku create
heroku addons:add heroku-postgresql:hobby-dev
git push heroku master
heroku run python manage.py db upgrade
heroku open
If you want to change config, set environment variables.
- GHE_LN_DATABASE_URI
- Specify database URI.
dialect+driver://username:password@host:port/database
- If not specified, uses sqlite, and creates sqlite's db file at
~/.ghe-line-notif/app.db
.
- Specify database URI.
- GHE_LN_SECRET_KEY
- Crypt for sign cookies and other things.
- Default value is
to_be_overridden
.
for example export GHE_LN_SECRET_KEY=hoge
.