Jump to content

Tool:Wikipedia e la scuola italiana

From Wikitech
Toolforge tools
Wikipedia e la scuola italiana
Website https://meta.wikimedia.org/wiki/Wikipedia_e_scuola_italiana
Description Data-visualization for m:Wikipedia e scuola italiana
Keywords Wikipedia, itwiki, scuola italiana
Author(s) Giovanni Profeta (G.proftalk)
Maintainer(s) User:Valerio Bozzolan (View all)
Source code https://github.com/giovannipro/giovannipro.github.io/tree/master/wikipedia-scuola-italiana
License GNU General Public License 3.0 or later

This page is the documentation for a data-visualization tool in Wikimedia Toolforge related to the project Wikipedia e la scuola italiana.

See it online:

Report a bug about the project (to the web developer)

Feel free to share any idea or any bug report to the upstream web developer and project maintainer Giovanni Profeta (m:User:G.prof).

Upstream repository:

https://github.com/giovannipro/giovannipro.github.io

Bugs and ideas:

https://github.com/giovannipro/giovannipro.github.io/issues

Report a bug about the Toolforge server (to the sysadmin)

Feel free to share any idea or any bug report to the downstream Toolforge sysadmin User:Valerio Bozzolan (volunteer).

Contact:

Deployment

This tool was deployed issuing these commands:

# authenticate in the tool
ssh login.toolforge.org
become itwiki-scuola-italiana

# clone the repository somewhere
mkdir --parents repositories
git clone https://github.com/giovannipro/giovannipro.github.io.git repositories/giovannipro.github.io

# expose the repository
ln --symbolic repositories/giovannipro.github.io/wikipedia-scuola-italiana/ public_html

# make it online
webservice start

Update

This tool is automagically updated every hour thanks to a cronjob entry in the Toolforge grid.

It's scheduled every hour nearly at XX:41. It means this happens every hour at a fixed minute. The minute was picked randomly, trying to avoid the usual spike that happens at XX:00 in this kind of shared environments.

This is the command that schedules the script every hour:

toolforge-jobs run pull-from-giovanni-profeta-git --command ./scripts/update.sh --image tf-php74 --schedule "41 * * * *"

Note: the image tf-bullseye-std does not provide git so was not used.

Note: see Help:Toolforge/Kubernetes for further info.

This is the content of update.sh:

#!/bin/sh
cd /data/project/itwiki-scuola-italiana/repositories/giovannipro.github.io
git pull

That's all.

See also