|
|
|
Filehooks is **deprecated**. It is reduced to a simple REST-call that transfers the gitlab event content to the Sharing Plattform.
|
|
|
|
|
|
|
1. Install PyCharm (or another IDE of your choice for python)
|
|
1. Install PyCharm (or another IDE of your choice for python)
|
|
|
2. Start PyCharm and checkout the file hooks project from https://extgit.iaik.tugraz.at/codeability/codeability/sharingplattform/file-hooks.git
|
|
2. Start PyCharm and checkout the file hooks project from https://extgit.iaik.tugraz.at/codeability/codeability/sharingplattform/file-hooks.git
|
|
|
3. Provide an ssh-tunnel from listening port 9200 to artemis.codeability-austria.uibk.ac.at:9200 (elastic search)
|
|
3. Provide an ssh-tunnel from listening port 9200 to artemis.codeability-austria.uibk.ac.at:9200 (elastic search)
|
|
|
4. Use test events files from folder _gitlab events_, copy them into an own file, adjust relevant content, and eliminiate all line feeds :smirk:
|
|
4. Use test events files from folder _gitlab events_, copy them into an own file, adjust relevant content, and eliminiate all line feeds :smirk:
|
|
|
5. right click on scripts/trigger_indexing.py (or any other file you want to debug) and select "Modify Run Configuration ..."
|
|
5. right click on scripts/trigger_indexing.py (or any other file you want to debug) and select "Modify Run Configuration ..."  Enter the path of your one liner file into "Redirect Input from"
|
|
|

|
|
6. ensure correct debug configuration in filehooks/_init_.py and filehooks/conf/conf.debug.ini resp. Especially copy the correct api tokens from key pass.
|
|
|
Enter the path of your one liner file into "Redirect Input from"
|
|
|
|
|
6. ensure correct debug configuration in filehooks/_init_.py and filehooks/conf/conf.debug.ini resp.
|
|
|
|
|
Especially copy the correct api tokens from key pass.
|
|
|
|
|
7. Start Debugging |
|
7. Start Debugging |
|
|
|
\ No newline at end of file |