Tool:Wiki patrimonio

From Wikitech
Jump to navigation Jump to search
Toolforge tools
Crystal Clear app package utilities.png Wikipedia e il patrimonio
Website https://meta.wikimedia.org/wiki/Wikipedia_e_scuola_italiana
Keywords Wikipedia, patrimonio
Author(s) Giovanni Profeta (G.proftalk)
Maintainer(s) User:Valerio Bozzolan (View all)
Source code https://github.com/giovannipro/giovannipro.github.io/tree/master/wiki-patrimonio
License GNU General Public License 3.0 or later

This page is the documentation for a data-visualization tool in Wikimedia Toolforge related to (ad here link).

See it online:

Report an idea

Feel free to share any idea to the upstream developer Giovanni Profeta (m:User:G.prof).

Upstream repository:

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

Report an issue

Feel free to report an issue to the downstream maintainer User:Valerio Bozzolan.

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/itwiki-patrimonio-italiano/ 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:22. 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 related crontab -e entry:

# m	h	dom	mon	dow	command
22  *   *   *   *   /data/project/wiki-patrimonio/scripts/update.sh

This is the content of update.sh:

#!/bin/sh
cd /data/project/wiki-patrimonio/repositories/giovannipro.github.io
git pull

That's all.

See also