Skip to content
Snippets Groups Projects
Commit 1ca12b29 authored by Rolf Niepraschk's avatar Rolf Niepraschk
Browse files

...

parent 4239f261
No related branches found
No related tags found
No related merge requests found
......@@ -3,24 +3,26 @@
## install & activate
```shell
mkdir -p /usr/local/share/vl-dcc
cd /usr/local/share/vl-dcc
mkdir -p /usr/local/share/supplyCouchdbJSON
cd /usr/local/share/supplyCouchdbJSON
curl --silent --output - \
https://gitlab1.ptb.de/niepra01/vl-dcc/-/archive/master/vl-dcc-master.tar \
https://gitlab1.ptb.de/niepra01/supplyCouchdbJSON/-/archive/master/supplyCouchdbJSON-master.tar \
| tar xf - --strip-components=1 # only once
python3 -m venv .
source bin/activate
pip3 install six appdirs packaging ordered_set pip-tools trans
pip-compile
chown -R nobody.nobody ../vl-dcc
chown -R nobody.nobody ../supplyCouchdbJSON
systemctl daemon-reload # if already exist
systemctl link $PWD/vl-dcc.service
systemctl enable vl-dcc.service # make permanent
systemctl start vl-dcc.service
systemctl status vl-dcc.service # running?
journalctl -f --unit vl-dcc.service # run-time check
systemctl link $PWD/supplyCouchdbJSON.service
systemctl enable supplyCouchdbJSON.service # make permanent
systemctl start supplyCouchdbJSON.service
systemctl status supplyCouchdbJSON.service # running?
journalctl -f --unit supplyCouchdbJSON.service # run-time check
```
???
## api
### supplyCouchdbJSON/dates (GET)
......@@ -43,7 +45,8 @@ curl -s http://localhost:5301/supplyCouchdbJSON/times/2020-02-05 > theTimes.json
### supplyCouchdbJSON/file/YYYY-mm-dd/HH-MM-SS-XXXXXXXXXX/xyz.json (GET)
Returns a JSON file with the contents of the file at the time of the specified file.
Returns a JSON file with the contents of the file at the time of the specified
commit date.
```
curl -s http://localhost:5301/supplyCouchdbJSON/file/2020-02-05/09-49-04-9da869dfa9/000_SERVERS.json \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment