Wicri:SanteChoraleV3

De Wicri Santé

Cette page introduit les aspects techniques de la version SanteChoraleV3 du « Serveur d'exploration Santé et chant choral ».

Voir aussi :

Initialisation

Ce serveur a probablement été initialisé par les commandes :

cd $WICRI_ROOT/Sante/explor/SanteChorale.storage

NlmPubMedExplorCorpus  -d SanteChoraleV3  \
          -q "choir[Title/Abstract]" -s 2000    \
          -t "Serveur d'exploration Santé et chant choral"

Installation

Installation des données

Dans tous les cas, sur le site LorExplor, le serveur sera installé sur le répertoire :

 $WICRI_ROOT/Sante/explor/SanteChorale.storage

Sur le site LorExplor il n'y a rien à faire à l'issue de la commande NlmPubMedExplorCorpus

Génération à partir d'une machine locale

Sur la machine locale
 tar -cvf SanteChoraleV3.tar SanteChoraleV3
 gzip SanteChoraleV3.tar

 scp SanteChoraleV3.tar.gz $ISTEX_SCP:$WICRI_TARGET_ROOT/Sante/explor/SanteChorale.storage
Sur la machine LorExplor
cd $WICRI_ROOT/Sante/explor/SanteChorale.storage

gunzip SanteChoraleV3.tar.gz
tar -xvf SanteChoraleV3.tar
gzip SanteChoraleV3.tar

Définition des liens pour visibilité Web

Sur la machine LorExplor
source /applis/lorexplor/Dilib/init.sh
cd $WICRI_ROOT/Sante/explor
ln -s SanteChorale.storage/SanteChoraleV3 .
cd /applis/lorexplor/www/html/Wicri/Sante/explor
ln -s $WICRI_ROOT/Sante/explor/SanteChoraleV3 .

Installation des pages wikis

Importer les pages suivantes à partir du répertoire .../Wicri/Sante/explor/SanteChorale.storage :

  • wikiParam.xml, exportSize.xml, exportInclude.xml, exportMaps.xml

Créer la page Serveur d'exploration Santé et chant choral à partir de :

  • mainPage.wiki

Mise à jour

Définition EXPLOR_AREA

EXPLOR_AREA=$WICRI_ROOT/Sante/explor/SanteChorale.storage/SanteChoraleV3
export EXPLOR_AREA
export LC_ALL='C'

Chargement d'une nouvelle version des données

cd $EXPLOR_AREA
mkdir Import/Archive
mv Import/pubmed_result.xml Import/Archive/.
NlmPubMedGetCorpus -q "choir[Title/Abstract]" -s 2000 -x  > Import/pubmed_result.xml

Restauration complète

sh $EXPLOR_AREA/bin/AreaReset.sh
ExplorAreaDataCreate -d $EXPLOR_AREA
make -f $EXPLOR_AREA/bin/area.mk
sh $EXPLOR_AREA/bin/AreaCreateSite.fr.sh
cat $EXPLOR_AREA/Import/ListKeys.wiki       \
  |  MediaWikiCleanTable                     \
  | MediaWikiTable2SxmlRowCol                \
  | MediaWikiTableTransformCol -t 123 -T 4   \
  > $EXPLOR_AREA/Input/ListKeys.xml
ExplorGenerTemplateSize -f $EXPLOR_AREA/Input/ListKeys.xml > $EXPLOR_AREA/exportSize.xml
MediaWikiExportCommand -c fileBegin > $EXPLOR_AREA/exportMaps.xml
source $EXPLOR_AREA/FixBin/AreaGenerWikiTemplateMaps.sh >> $EXPLOR_AREA/exportMaps.xml
MediaWikiExportCommand -c fileEnd >> $EXPLOR_AREA/exportMaps.xml
MediaWikiExportCommand -c fileBegin > $EXPLOR_AREA/exportInclude.xml
source $EXPLOR_AREA/FixBin/AreaGenerWikiTemplateInclude.sh >> $EXPLOR_AREA/exportInclude.xml
MediaWikiExportCommand -c fileEnd >> $EXPLOR_AREA/exportInclude.xml

Installation de la nouvelle version

Sur la machine LorExplor
source /applis/lorexplor/Dilib/init.sh
cd $WICRI_ROOT/Sante/explor/SanteChorale.storage
rm SanteChoraleV3.tar.gz
Sur la machine de développement
cd $WICRI_ROOT/Sante/explor/SanteChorale.storage
rm SanteChoraleV3.tar.gz
tar -cvf SanteChoraleV3.tar SanteChoraleV3
gzip SanteChoraleV3.tar
scp SanteChoraleV3.tar.gz $ISTEX_SCP:$WICRI_TARGET_ROOT/Sante/explor/SanteChorale.storage

Voir aussi

Cette page est générée à partir de