Il y a 389 articles et 19 utilisateurs inscrits (ce bandeau est défini dans MediaWiki:Sitenotice)

Bm-grenoble Mis à Jour 13/12/2012

De AJLSM
Aller à la navigation Aller à la recherche
mkdir -p webapps/dump-bmg-notix-20121213/webapp
cp -R webapps/current-bm-grenoble/* webapps/dump-bmg-notix-20121213/webapp/
mkdir webapps/dump-bmg-notix-20121213/exist
sudo /opt/eXist-pprod-home/bin/backup.sh -u admin -p admin -d webapps/dump-bmg-notix-20121213/exist -b /db -ouri=xmldb:exist://localhost:8899/exist/xmlrpc
cd webapps/dump-bmg-notix-20121213/webapp
tar -zcf ../webapp.tar.gz *
cd ../exist
tar -zcf exist.tar.gz *
  • Téléchargez les fichiers webapp.tar.gz et exist.tar.gz avec FileZilla à votre ordinateur dans PRE-misajour-2012-12-13/tar, et après sur votre ordinateur:
cd PRE-misajour-2012-12-13
export ANT_OPTS=-Xmx2000m
ant
ant -f build_tomcat.xml
  • Faire le mis à jour, et mettre les fichiers exist_nouveau.tar.gz et webapp_nouveau.tar.gz dans webapps/dump-bmg-notix-20121213
cd webapps/dump-bmg-notix-20121213/
mkdir webapp_nouveau
mkdir exist_nouveau
cd webapp_nouveau/
tar -xf ../webapp_nouveau.tar.gz
cd ../exist_nouveau/
tar -xf ../exist_nouveau.tar.gz
sudo /opt/eXist-home/bin/backup.sh -u admin -p admin -r . -ouri=xmldb:exist://localhost:8899/exist/xmlrpc
sudo /opt/eXist-pprod-home/bin/backup.sh -u admin -p admin -r . -ouri=xmldb:exist://localhost:8890/exist/xmlrpc
cd ..
mkdir bm-grenoble-pprod-v1.6-20121213
mkdir bm-grenoble-prod-v1.6-20121213
cp dump-bmg-notix-20121213/webapp_nouveau/* bm-grenoble-pprod-v1.6-20121213/
cp dump-bmg-notix-20121213/webapp_nouveau/* bm-grenoble-prod-v1.6-20121213/
cp bm-grenoble-pprod-v1.5-20120504/WEB-INF/XDBConfig.xml bm-grenoble-pprod-v1.6-20121213/WEB-INF/
cp bm-grenoble-pprod-v1.5-20120504/WEB-INF/properties/notix-plus.properties bm-grenoble-pprod-v1.6-20121213/WEB-INF/properties/
cp bm-grenoble-pprod-v1.5-20120504/global-variables.xmap bm-grenoble-pprod-v1.6-20121213
rm current-bmg-pprod
ln -s bm-grenoble-pprod-v1.6-20121213/ current-bmg-pprod
rm current-bm-grenoble
ln -s bm-grenoble-prod-v1.6-20121213/ current-bm-grenoble
sudo chmod -R 777 bm-grenoble-prod-v1.6-20121213
sudo chmod -R 777 bm-grenoble-pprod-v1.6-20121213
sudo /etc/init.d/tomcat6-pprod stop
sudo /etc/init.d/tomcat6-pprod start
sudo /etc/init.d/tomcat6 stop
sudo /etc/init.d/tomcat6 start