API : work in progress
This commit is contained in:
parent
9ae2afa39f
commit
d8d7a96651
|
@ -103,16 +103,16 @@ Lancer et tester le service :
|
|||
|
||||
```bash
|
||||
# enable
|
||||
sudo systemctl enable api_hello
|
||||
sudo systemctl enable api_redadeg
|
||||
# start
|
||||
sudo systemctl start api_hello
|
||||
sudo systemctl start api_redadeg
|
||||
# check
|
||||
sudo systemctl status api_hello
|
||||
sudo systemctl status api_redadeg
|
||||
```
|
||||
|
||||
Faire ```ll /tmp/api_redadeg*``` pour voir si le socket a bien été créé par www-data.
|
||||
|
||||
Tester si on obtient bien toujours un "Hello There" sur la page http://localhost/hello/
|
||||
Tester si on obtient bien toujours un "Hello There" sur la page https://ar-redadeg.openstreetmap.bzh/api/
|
||||
|
||||
|
||||
Si on veut supprimer le service :
|
||||
|
|
|
@ -26,7 +26,7 @@ def test():
|
|||
|
||||
|
||||
@app.route("/phase1/")
|
||||
def test():
|
||||
def phase1():
|
||||
stdout = check_output(['../scripts/traitements_phase_1.sh']).decode('utf-8')
|
||||
return stdout
|
||||
|
||||
|
|
Loading…
Reference in a new issue