Differenze tra le versioni di "Progetto Percorsi Agili/Technical documentation"
Jump to navigation
Jump to search
(+#Cron) |
|||
| Riga 19: | Riga 19: | ||
User home: | User home: | ||
| − | + | <pre> | |
| + | ls -l /var/www/barriere/ | ||
| + | total 16 | ||
| + | drwxr-xr-x 2 barriere barriere 4096 giu 15 08:21 private | ||
| + | drwxr-xr-x 3 barriere barriere 4096 giu 16 11:59 repos | ||
| + | drwxr-xr-x 2 barriere barriere 4096 giu 16 12:05 scripts | ||
| + | drwxr-xr-x 2 barriere barriere 4096 giu 15 08:21 www | ||
| + | </pre> | ||
Document root: | Document root: | ||
| Riga 32: | Riga 39: | ||
# https://wiki.wikimedia.it/wiki/Progetto_Percorsi_Agili/Technical_documentation | # https://wiki.wikimedia.it/wiki/Progetto_Percorsi_Agili/Technical_documentation | ||
# m h dom mon dow command | # m h dom mon dow command | ||
| − | 22 */2 * * * su barriere --command /var/www/barriere/scripts/update- | + | 22 */2 * * * su barriere --command /var/www/barriere/scripts/update.sh |
| + | </pre> | ||
| + | |||
| + | Script: | ||
| + | |||
| + | <pre> | ||
| + | #!/bin/sh | ||
| + | |||
| + | set -e | ||
| + | |||
| + | # https://github.com/GISdevio/OSM-Accessibility-Web | ||
| + | cd /var/www/barriere/repos/OSM-Accessibility-Data | ||
| + | git pull --quiet | ||
| + | cd - > /dev/null | ||
</pre> | </pre> | ||
| Riga 38: | Riga 58: | ||
None. | None. | ||
| + | |||
| + | == Source code == | ||
| + | |||
| + | * https://github.com/GISdevio/OSM-Accessibility-Web | ||
| + | * https://github.com/GISdevio/OSM-Accessibility-Data | ||
Versione delle 13:11, 16 giu 2021
Questa pagina è una bozza.
Pagina legata al server
⚙️ intreccioThis page is the technical documentation for a webapp related to Progetto Percorsi Agili.
See online:
Access
Secure access via SSH using your public key:
ssh barriere@intreccio.wikimedia.it
How to be authorized? See Infrastruttura.
Filesystem
User home:
ls -l /var/www/barriere/ total 16 drwxr-xr-x 2 barriere barriere 4096 giu 15 08:21 private drwxr-xr-x 3 barriere barriere 4096 giu 16 11:59 repos drwxr-xr-x 2 barriere barriere 4096 giu 16 12:05 scripts drwxr-xr-x 2 barriere barriere 4096 giu 15 08:21 www
Document root:
/var/www/barriere/www
Cron
# every two hour update OSM Accessibility map # https://github.com/GISdevio/OSM-Accessibility-Web # https://wiki.wikimedia.it/wiki/Progetto_Percorsi_Agili/Technical_documentation # m h dom mon dow command 22 */2 * * * su barriere --command /var/www/barriere/scripts/update.sh
Script:
#!/bin/sh set -e # https://github.com/GISdevio/OSM-Accessibility-Web cd /var/www/barriere/repos/OSM-Accessibility-Data git pull --quiet cd - > /dev/null
Database
None.