An application to run jar when a specific file(s) are changed on a repo in Github
Collaborators: Daniel Garijo (@dgarijo), Ahmad Alobaid
- Add the url of the webhook.
- Add jar.cfg.
- After that, when ever you do a push to the master branch, if one of files you are watching is changed, then it will be triggered and the command you specified will be called.
There should a configuration file per monitored JAR (should be named jar.cfg)
[DEFAULT]
watch: "dir1/file1.owl", dir2/file2.csv
command: ls
The configuration file should be named jarsomatic.cfg and located in the top level of Jarsomatic folder
a sample configuration file is below
[DEFAULT]
tmp: /tmp
[GITHUB]
token: xxxxxxxxxxxxxxxxxx
To do so, the recommended way is to use access token
- create access token how to
- git clone https://@github.com/owner/repo.git
For using wsgi you can update jarsomatic.wsgi according to your server settings Apache with WSGI
Or you can use any of the deployment options mentioned in Flask official website Here