pyvec / naucse-hooks

Hooks for naucse.python.cz
MIT License
3 stars 3 forks source link

Deployment trigger for naucse.python.cz

You can send a POST request to /trigger, which will trigger a rebuild of naucse. The request has to contain keys repository and branch. This repository and branch has to be used somewhere in naucse, otherwise no deployment will be triggered.

How to install:

pip install -r requirements.txt

How to run:

export FLASK_APP=naucse_hooks.py
flask run

How to run in debug:

export FLASK_DEBUG=1
export FLASK_APP=naucse_hooks.py
flask run

How to configure:

How to deploy using mod_wsgi:

The app has to be able to write to file naucse_hooks.log and to the folder .sessions.

(<> means something you have to replace with your value)