branch feature/6511 updated (dfcf565 -> 25845d1)
This is an automated email from the git hooks/post-receive script. New change to branch feature/6511 in repository echobase. See http://git.codelutin.com/echobase.git discards dfcf565 refs #6511 : correction de la documentation d'installation discards b08ba5f refs #6511 : configuration de l'avant-guichet Apache discards bb698ea refs #6511 : mise à jour de la documentation d'installation de lizmap discards de1924a refs #6511 : correction du fichier de template lizmap adds b6a0ab8 up codelutinpom to 2.3 (refs #7227) adds d133ecc fixes #7227: Up codelutinpom to 2.3 Merge branch 'feature/7227' into develop new b82533f refs #6511 : correction du fichier de template lizmap new d21a2db refs #6511 : mise à jour de la documentation d'installation de lizmap new b72ec8f refs #6511 : configuration de l'avant-guichet Apache new 88005e4 refs #6511 : correction de la documentation d'installation new 33d6dc0 add qgis mapserver version in pom new f7d5e0a update docs new ccc4df8 update default option value new 25845d1 change doc url in gis jsp This update added new revisions after undoing existing revisions. That is to say, some revisions that were in the old version of the branch are not in the new version. This situation occurs when a user --force pushes a change and generates a repository containing something like this: * -- * -- B -- O -- O -- O (dfcf565) \ N -- N -- N refs/heads/feature/6511 (25845d1) You should already have received notification emails for all of the O revisions, and so the following emails describe only the N revisions from the common base, B. Any revisions marked "omits" are not gone; other references still refer to them. Any revisions marked "discards" are gone forever. The 8 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "adds" were already present in the repository and have only been added to this reference. Detailed log of new commits: commit 25845d113206345dbca5bbb3c7822adb09d45c4f Author: Tony CHEMIT <chemit@codelutin.com> Date: Mon Jun 15 16:38:50 2015 +0200 change doc url in gis jsp commit ccc4df8f3c6ba35e6862dbe4bb05d9d155bccf9d Author: Tony CHEMIT <chemit@codelutin.com> Date: Mon Jun 15 16:38:32 2015 +0200 update default option value commit f7d5e0ac5e96b19a3cf592808fc943e5a1209389 Author: Tony CHEMIT <chemit@codelutin.com> Date: Mon Jun 15 16:38:06 2015 +0200 update docs commit 33d6dc0f846db2355e19d4b5f8a92c35e11f81a2 Author: Tony CHEMIT <chemit@codelutin.com> Date: Mon Jun 15 16:37:52 2015 +0200 add qgis mapserver version in pom commit 88005e41836870e9123b1fda0ec81760573678ca Author: Sylvain Bavencoff <bavencoff@codelutin.com> Date: Fri Jun 12 10:10:28 2015 +0200 refs #6511 : correction de la documentation d'installation commit b72ec8f7414f93e4b383ae3b85e8f4dbc8ff9a5f Author: Sylvain Bavencoff <bavencoff@codelutin.com> Date: Thu Jun 11 18:04:17 2015 +0200 refs #6511 : configuration de l'avant-guichet Apache commit d21a2db8ec19e6ec8cdac223bfe87817d0fc115c Author: Sylvain Bavencoff <bavencoff@codelutin.com> Date: Thu Jun 11 14:30:21 2015 +0200 refs #6511 : mise à jour de la documentation d'installation de lizmap commit b82533f6532ee9a7b3fe7304a21c30d64eefd005 Author: Sylvain Bavencoff <bavencoff@codelutin.com> Date: Thu Jun 11 14:29:30 2015 +0200 refs #6511 : correction du fichier de template lizmap Summary of changes: .../config/EchoBaseConfigurationOption.java | 2 +- .../src/main/webapp/WEB-INF/jsp/spatial/show.jsp | 2 +- pom.xml | 4 +- src/site/rst/configure.rst.vm | 62 +++++ src/site/rst/install.rst.vm | 310 ++++++++------------- src/site/rst/update.rst.vm | 59 ++++ src/site/site_en.xml | 2 + src/site/site_fr.xml | 2 + 8 files changed, 240 insertions(+), 203 deletions(-) create mode 100644 src/site/rst/configure.rst.vm create mode 100644 src/site/rst/update.rst.vm -- To stop receiving notification emails like this one, please contact codelutin.com SCM administrator <admin+scm@codelutin.com>.
This is an automated email from the git hooks/post-receive script. New commit to branch feature/6511 in repository echobase. See http://git.codelutin.com/echobase.git commit b82533f6532ee9a7b3fe7304a21c30d64eefd005 Author: Sylvain Bavencoff <bavencoff@codelutin.com> Date: Thu Jun 11 14:29:30 2015 +0200 refs #6511 : correction du fichier de template lizmap --- .../gis/templates/EchoBaseLizmapTemplate.qgs.cfg | 169 +++++++++------------ 1 file changed, 74 insertions(+), 95 deletions(-) diff --git a/echobase-services/src/main/resources/gis/templates/EchoBaseLizmapTemplate.qgs.cfg b/echobase-services/src/main/resources/gis/templates/EchoBaseLizmapTemplate.qgs.cfg index 5b8021b..70a9970 100644 --- a/echobase-services/src/main/resources/gis/templates/EchoBaseLizmapTemplate.qgs.cfg +++ b/echobase-services/src/main/resources/gis/templates/EchoBaseLizmapTemplate.qgs.cfg @@ -1,18 +1,19 @@ { "layers": { - "Anchovy biomass": { - "abstract": "", + "Sardine biomass": { + "abstract": "", + "displayInLegend": "True", "baseLayer": "False", "noLegendImage": "False", - "id": "cellesduviewspeciesbiomass{{voyageId}}", - "title": "Anchovy", + "id": "biomass_sardpil{{voyageId}}", + "title": "Sardine biomass", "singleTile": "False", "groupAsLayer": "False", "popup": "False", "clientCacheExpiration": 300, "link": "", "toggled": "False", - "name": "Anchovy biomass", + "name": "Sardine biomass", "cached": "False", "type": "layer", "maxScale": 1000000000000, @@ -24,8 +25,8 @@ "displayInLegend": "True", "baseLayer": "False", "noLegendImage": "False", - "id": "Sprat_biomass{{voyageId}}", - "title": "Horse mackerel", + "id": "biomass_tractru{{voyageId}}", + "title": "Horse mackerel biomass", "singleTile": "False", "groupAsLayer": "False", "popup": "False", @@ -64,14 +65,14 @@ "displayInLegend": "True", "baseLayer": "False", "noLegendImage": "False", - "id": "Mackerel_biomass{{voyageId}}", - "title": "Blue whitting", + "id": "biomass_micrpou{{voyageId}}", + "title": "Blue whitting biomass", "singleTile": "False", "groupAsLayer": "False", "popup": "False", "clientCacheExpiration": 300, "link": "", - "toggled": "False", + "toggled": "True", "name": "Blue whitting biomass", "cached": "False", "type": "layer", @@ -79,80 +80,60 @@ "imageFormat": "image/png", "minScale": 1 }, - "Blue whitting mean Biomass": { + "Anchovy biomass": { "abstract": "", "displayInLegend": "True", "baseLayer": "False", "noLegendImage": "False", - "id": "meanmapcellbiomassmicrpou{{voyageId}}", - "title": "Blue whitting", + "id": "biomass_engrenc{{voyageId}}", + "title": "Anchovy biomass", "singleTile": "False", "groupAsLayer": "False", "popup": "False", "clientCacheExpiration": 300, "link": "", - "toggled": "False", - "name": "Blue whitting mean Biomass", + "toggled": "True", + "name": "Anchovy biomass", "cached": "False", "type": "layer", "maxScale": 1000000000000, "imageFormat": "image/png", "minScale": 1 }, - "Sardine biomass": { + "Blue whitting mean biomass": { "abstract": "", "displayInLegend": "True", "baseLayer": "False", "noLegendImage": "False", - "id": "Anchovy_biomass{{voyageId}}", - "title": "Sardine", + "id": "meanmapcellbiomass_micrpou{{voyageId}}", + "title": "Blue whitting mean biomass", "singleTile": "False", "groupAsLayer": "False", "popup": "False", "clientCacheExpiration": 300, "link": "", "toggled": "False", - "name": "Sardine biomass", - "cached": "False", - "type": "layer", - "maxScale": 1000000000000, - "imageFormat": "image/png", - "minScale": 1 - }, - "Country": { - "abstract": "", - "displayInLegend": "True", - "baseLayer": "False", - "noLegendImage": "False", - "id": "country{{voyageId}}", - "title": "Country", - "singleTile": "True", - "groupAsLayer": "False", - "popup": "False", - "clientCacheExpiration": 300, - "link": "", - "toggled": "True", - "name": "Country", + "name": "Blue whitting mean biomass", "cached": "False", "type": "layer", "maxScale": 1000000000000, "imageFormat": "image/png", "minScale": 1 }, - "Mackerel mean Biomass": { + "Mackerel mean biomass": { "abstract": "", "displayInLegend": "True", "baseLayer": "False", "noLegendImage": "False", - "id": "meanmapcellbiomassscomsco{{voyageId}}", - "title": "Mackerel", + "id": "meanmapcellbiomass_scomsco{{voyageId}}", + "title": "Mackerel mean biomass", "singleTile": "False", "groupAsLayer": "False", "popup": "False", "clientCacheExpiration": 300, "link": "", "toggled": "False", - "name": "Mackerel mean Biomass", + "name": "Mackerel mean biomass", "cached": "False", "type": "layer", "maxScale": 1000000000000, @@ -163,16 +144,15 @@ "abstract": "", "displayInLegend": "True", "baseLayer": "False", - "noLegendImage": "True", + "noLegendImage": "False", "id": "totalcatchspopwide{{voyageId}}", "title": "Pelagic trawl catch", - "singleTile": "True", + "singleTile": "False", "groupAsLayer": "False", - "popupTemplate": "", - "popup": "True", + "popup": "False", "clientCacheExpiration": 300, "link": "", - "toggled": "False", + "toggled": "True", "name": "Pelagic trawl catch", "cached": "False", "type": "layer", @@ -180,161 +160,160 @@ "imageFormat": "image/png", "minScale": 1 }, - "Anchovy mean Biomass": { + "Biomass": { "abstract": "", "displayInLegend": "True", "baseLayer": "False", "noLegendImage": "False", - "id": "meanmapcellbiomassengrenc{{voyageId}}", - "title": "Anchovy", + "id": "Biomass", + "title": "Biomass", "singleTile": "False", "groupAsLayer": "False", "popup": "False", "clientCacheExpiration": 300, "link": "", - "toggled": "False", - "name": "Anchovy mean Biomass", + "toggled": "True", + "name": "Biomass", "cached": "False", - "type": "layer", + "type": "group", "maxScale": 1000000000000, "imageFormat": "image/png", "minScale": 1 }, - "Biomass": { + "Anchovy mean biomass": { "abstract": "", "displayInLegend": "True", "baseLayer": "False", "noLegendImage": "False", - "id": "Biomass", - "title": "Biomass", + "id": "meanmapcellbiomass_engrenc{{voyageId}}", + "title": "Anchovy mean biomass", "singleTile": "False", "groupAsLayer": "False", "popup": "False", "clientCacheExpiration": 300, "link": "", - "toggled": "True", - "name": "Biomass", + "toggled": "False", + "name": "Anchovy mean biomass", "cached": "False", - "type": "group", + "type": "layer", "maxScale": 1000000000000, "imageFormat": "image/png", "minScale": 1 }, - "Sprat mean Biomass": { + "Sprat mean biomass": { "abstract": "", "displayInLegend": "True", "baseLayer": "False", "noLegendImage": "False", - "id": "meanmapcellbiomassspraspr{{voyageId}}", - "title": "Sprat", + "id": "meanmapcellbiomass_spraspr{{voyageId}}", + "title": "Sprat mean biomass", "singleTile": "False", "groupAsLayer": "False", "popup": "False", "clientCacheExpiration": 300, "link": "", "toggled": "False", - "name": "Sprat mean Biomass", + "name": "Sprat mean biomass", "cached": "False", "type": "layer", "maxScale": 1000000000000, "imageFormat": "image/png", "minScale": 1 }, - "Bathymetry": { + "Country": { "abstract": "", "displayInLegend": "True", - "cacheExpiration": 86400, "baseLayer": "False", "noLegendImage": "False", - "id": "pelgas{{voyageId}}", - "title": "Bathymetry", - "singleTile": "True", + "id": "country{{voyageId}}", + "title": "Country", + "singleTile": "False", "groupAsLayer": "False", "popup": "False", "clientCacheExpiration": 300, "link": "", "toggled": "True", - "name": "Bathymetry", - "cached": "False", + "name": "Country", + "cached": "False", "type": "layer", "maxScale": 1000000000000, "imageFormat": "image/png", "minScale": 1 }, - "Sprat biomass": { + "Sardine mean biomass": { "abstract": "", "displayInLegend": "True", "baseLayer": "False", "noLegendImage": "False", - "id": "Sardine_biomass{{voyageId}}", - "title": "Sprat", + "id": "meanmapcellbiomass_sardpil{{voyageId}}", + "title": "Sardine mean biomass", "singleTile": "False", "groupAsLayer": "False", "popup": "False", "clientCacheExpiration": 300, "link": "", "toggled": "False", - "name": "Sprat biomass", + "name": "Sardine mean biomass", "cached": "False", "type": "layer", "maxScale": 1000000000000, "imageFormat": "image/png", "minScale": 1 }, - "Mackerel biomass": { + "Bathymetry": { "abstract": "", "displayInLegend": "True", "baseLayer": "False", "noLegendImage": "False", - "id": "Horse_mackerel_biomass{{voyageId}}", - "title": "Mackerel", + "id": "pelgas{{voyageId}}", + "title": "Bathymetry", "singleTile": "False", "groupAsLayer": "False", "popup": "False", "clientCacheExpiration": 300, "link": "", - "toggled": "False", - "name": "Mackerel biomass", + "toggled": "True", + "name": "Bathymetry", "cached": "False", "type": "layer", "maxScale": 1000000000000, "imageFormat": "image/png", "minScale": 1 }, - "Sardine mean Biomass": { + "Mackerel biomass": { "abstract": "", "displayInLegend": "True", "baseLayer": "False", "noLegendImage": "False", - "id": "meanmapcellbiomasssardpil{{voyageId}}", - "title": "Sardine", + "id": "biomass_scomsco{{voyageId}}", + "title": "Mackerel biomass", "singleTile": "False", "groupAsLayer": "False", "popup": "False", "clientCacheExpiration": 300, "link": "", "toggled": "False", - "name": "Sardine mean Biomass", + "name": "Mackerel biomass", "cached": "False", "type": "layer", "maxScale": 1000000000000, "imageFormat": "image/png", "minScale": 1 }, - "Horse mackerel mean Biomass": { + "Horse mackerel mean biomass": { "abstract": "", "displayInLegend": "True", "baseLayer": "False", "noLegendImage": "False", - "id": "meanmapcellbiomasstractru{{voyageId}}", - "title": "Horse mackerel", + "id": "meanmapcellbiomass_tractru{{voyageId}}", + "title": "Horse mackerel mean biomass", "singleTile": "False", "groupAsLayer": "False", "popup": "False", "clientCacheExpiration": 300, "link": "", "toggled": "False", - "name": "Horse mackerel mean Biomass", + "name": "Horse mackerel mean biomass", "cached": "False", "type": "layer", "maxScale": 1000000000000, @@ -348,10 +327,10 @@ "ref": "EPSG:4326" }, "initialExtent": [ - -7.68500431446, - 42.5244137172, - 4.50530473346, - 49.5897853926 + -7.82208212997, + 42.7928625035, + 1.50876992928, + 49.1306102424 ], "maxScale": 3000000, "tmTimeFrameType": "seconds", @@ -370,11 +349,11 @@ "tmTimeFrameSize": 10, "tmAnimationFrameLength": 1000, "bbox": [ - -8.52951124806, + -7.82208212997, 42.7928625035, - 2.21619904737, + 1.50876992928, 49.1306102424 ], - "minScale": 500000 + "minScale": 10000 } } \ No newline at end of file -- To stop receiving notification emails like this one, please contact codelutin.com SCM administrator <admin+scm@codelutin.com>.
This is an automated email from the git hooks/post-receive script. New commit to branch feature/6511 in repository echobase. See http://git.codelutin.com/echobase.git commit d21a2db8ec19e6ec8cdac223bfe87817d0fc115c Author: Sylvain Bavencoff <bavencoff@codelutin.com> Date: Thu Jun 11 14:30:21 2015 +0200 refs #6511 : mise à jour de la documentation d'installation de lizmap --- .../config/EchoBaseConfigurationOption.java | 8 +-- src/site/rst/install.rst.vm | 69 ++++++++++++++++++---- 2 files changed, 59 insertions(+), 18 deletions(-) diff --git a/echobase-domain/src/main/java/fr/ifremer/echobase/config/EchoBaseConfigurationOption.java b/echobase-domain/src/main/java/fr/ifremer/echobase/config/EchoBaseConfigurationOption.java index a662ae0..9eb621e 100644 --- a/echobase-domain/src/main/java/fr/ifremer/echobase/config/EchoBaseConfigurationOption.java +++ b/echobase-domain/src/main/java/fr/ifremer/echobase/config/EchoBaseConfigurationOption.java @@ -115,13 +115,9 @@ public enum EchoBaseConfigurationOption implements ConfigOptionDef { n("echobase.config.lizmap.projects.directory.description"), "${echobase.gis.directory}/projects", File.class), - LIZMAP_APPLICATION_VERSION("echobase.lizmap.application.version", - n("echobase.config.lizmap.application.version.description"), - "", - Version.class), LIZMAP_APPLICATION_BASEDIR("echobase.lizmap.application.basedir", n("echobase.config.lizmap.application.basedir.description"), - "/var/www/lizmap-web-client-${echobase.lizmap.application.version}", + "/var/www/echobase-map", File.class), LIZMAP_APPLICATION_CONFIG_FILE("echobase.lizmap.application.config.file", n("echobase.config.lizmap.application.config.file.description"), @@ -129,7 +125,7 @@ public enum EchoBaseConfigurationOption implements ConfigOptionDef { File.class), LIZMAP_APPLICATION_MAP_URL("echobase.lizmap.application.map.url", n("echobase.config.lizmap.application.map.url.description"), - "http://localhost/lizmap-web-client-${echobase.lizmap.application.version}/lizmap/www/index.php/view/map", + "http://localhost/echobase-map/lizmap/www/index.php/view/map", String.class), LIZMAP_APPLICATION_JDBC_URL("echobase.lizmap.application.jdbc.url", n("echobase.config.lizmap.application.jdbc.url.description"), diff --git a/src/site/rst/install.rst.vm b/src/site/rst/install.rst.vm index e7bebac..562f3ec 100644 --- a/src/site/rst/install.rst.vm +++ b/src/site/rst/install.rst.vm @@ -152,8 +152,6 @@ Pour utiliser une nouvelle version de l'application, c'est très simple. cp /var/local/echobase/echobase.war /var/lib/tomcat7/webapps Tomcat va redéployer l'application et elle sera disponible d'ici peu à l'adresse -:: - http://localhost:8080/echobase Divers @@ -199,9 +197,29 @@ Pour installer Qgis map server : :: - apt-get install qgis-server libapache2-mod-fcgid - a2enmod cgid - service apache2 restart + sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable + sudo apt-get update + sudo apt-get install qgis-server libapache2-mod-fcgid qgis + sudo apt-get install apache2 + sudo a2enmod cgid + sudo service apache2 restart + + +L'url : http://localhost/cgi-bin/qgis_mapserv.fcgi?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities +doit renvoyer un fichier XML de description des couches disponibles. + +Création du groupe d'utilisateur +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +:: + + addgroup echobase + adduser wwww-data echobase + adduser tomcat7 echobase + cd /var/local/echobase + chown -R tomcat7:echobase . + chmod g+w -R . + Lizmap ~~~~~~ @@ -210,28 +228,55 @@ Nous utilisons pour le moment la version ${lizmapVersion}. Installation Lizmap:: + apt-get install php5 curl php5-curl php5-sqlite php5-gd cd /var/www/ - VERSION=${lizmapVersion} - wget https://github.com/3liz/lizmap-web-client/archive/$VERSION.zip - unzip $VERSION.zip - rm $VERSION.zip + wget https://github.com/3liz/lizmap-web-client/archive/${lizmapVersion}.zip + unzip ${lizmapVersion}.zip + rm ${lizmapVersion}.zip + mv lizmap-web-client-${lizmapVersion} echobase-map + +**Note** + +Dans les nouvelles conventions d'Apache2, le repetoire de partage n'est plus **/var/wwww** mais **/var/www/html** . +Dans ce cas, il faudrat modifier la configuration d'echobase comme suit :: + + echobase.lizmap.application.basedir=/var/www/html/echobase-map -On obtient alors un répertoire **lizmap-web-client-${lizmapVersion}**. Il faut ensuite installer le style adapté pour EchoBase:: - cd /var/www/lizmap-web-client-${lizmapVersion}/lizmap + cd /var/www/echobase-map/lizmap wget http://nexus.nuiton.org/nexus/content/repositories/other-releases/fr/ifremer/echobase/echobase-ui/${project.version}/echobase-ui-${project.version}-lizmap.zip unzip echobase-ui-${project.version}-lizmap.zip rm -rf echobase-ui-${project.version}-lizmap.zip cd .. - chown -R o+wr . + chown -R wwww-data:echobase . + chmod g+w -R . + +Pour tester le server lizmap utilisez l'url : http://localhost/echobase-map/lizmap/www + Configuration des répertoires ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Il est possible de modifier la configuration de ces différents répertoires dans la configuration (voir le `détail des options disponibles`_). +Il peut être necessaire de redefinir l'addresse public du serveur lizmap +:: + + echobase.lizmap.application.map.url=http://<serveur>/echobase-map/lizmap/www/index.php/view/map + + +Finalisation +~~~~~~~~~~~~ + +Il est nécessaire de redemarer les services +:: + + sudo service apache2 restart + sudo service tomvcat7 restart + + .. _créer une base travail: ./db.html#creation-d-une-base-postgresql .. _détail des options disponibles: ./config-report.html .. _Qgis map server: http://hub.qgis.org/projects/quantum-gis/wiki/QGIS_Server_Tutorial -- To stop receiving notification emails like this one, please contact codelutin.com SCM administrator <admin+scm@codelutin.com>.
This is an automated email from the git hooks/post-receive script. New commit to branch feature/6511 in repository echobase. See http://git.codelutin.com/echobase.git commit b72ec8f7414f93e4b383ae3b85e8f4dbc8ff9a5f Author: Sylvain Bavencoff <bavencoff@codelutin.com> Date: Thu Jun 11 18:04:17 2015 +0200 refs #6511 : configuration de l'avant-guichet Apache --- src/site/rst/install.rst.vm | 82 ++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 77 insertions(+), 5 deletions(-) diff --git a/src/site/rst/install.rst.vm b/src/site/rst/install.rst.vm index 562f3ec..9f0bb40 100644 --- a/src/site/rst/install.rst.vm +++ b/src/site/rst/install.rst.vm @@ -266,15 +266,87 @@ Il peut être necessaire de redefinir l'addresse public du serveur lizmap echobase.lizmap.application.map.url=http://<serveur>/echobase-map/lizmap/www/index.php/view/map +Configuration l'avant-guichet Apache +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +Activez le connecteur tomcat : dans le fichier **/etc/tomcat7/server.xm** ajoutez ou décommentez la ligne:: -Finalisation -~~~~~~~~~~~~ + <Connector port="8009" enableLookups="false" redirectPort="8443" protocol="AJP/1.3"/> -Il est nécessaire de redemarer les services +Redémarrez le service tomcat :: - sudo service apache2 restart - sudo service tomvcat7 restart + service tomcat7 restart + + +Activez les modules Apache +:: + + a2enmod proxy proxy_ajp rewrite + +Créez le fichier **/etc/apache2/site-available/echobase.conf** +:: + + <VirtualHost *:80> + ServerName echobase.nomdedomaine.org + + ProxyRequests Off + + RewriteEngine On + RewriteRule ^/$ http://echobase.nomdedomaine.org/echobase/ [R] + + ProxyPass / ajp://localhost:8009/ + ProxyPassReverse / ajp://localhost:8009/ + + <Proxy *> + Order deny,allow + Allow from all + </Proxy> + + ErrorLog /var/log/apache2/echobase-error.log + LogLevel warn + CustomLog /var/log/apache2/echobase-access.log combined + + </VirtualHost> + +Créez le fichier **/etc/apache2/site-available/echobase.conf** +:: + + <VirtualHost *:80> + ServerName echobase-map.nomdedomaine.org + + ProxyRequests Off + + RewriteEngine On + RewriteRule ^/$ http://echobase-map.nomdedomaine.org/echobase-map/lizmpa/wwww [R] + + DocumentRoot /var/www + + ErrorLog /var/log/apache2/echobase-map-error.log + LogLevel warn + CustomLog /var/log/apache2/echobase-map-access.log combined + + </VirtualHost> + + +Activez les sites +:: + + a2ensite echobase.conf + a2ensite echobase-map.conf + +Redémarrez le service Apache +:: + + service apache2 restart + +Le site echobase est accesible à l'adresse http://echobase.nomdedomaine.org +Et le site de cartographie à l'adresse http://echobase-map.nomdedomaine.org/echobase-map/lizmap/www/index.php + +Vous pouvez donc modifier la configuration de echobase avec +:: + + echobase.lizmap.application.map.url=http://echobase-map.mondedomaine.org/echobase-map/lizmap/www/index.php/view/... .. _créer une base travail: ./db.html#creation-d-une-base-postgresql -- To stop receiving notification emails like this one, please contact codelutin.com SCM administrator <admin+scm@codelutin.com>.
This is an automated email from the git hooks/post-receive script. New commit to branch feature/6511 in repository echobase. See http://git.codelutin.com/echobase.git commit 88005e41836870e9123b1fda0ec81760573678ca Author: Sylvain Bavencoff <bavencoff@codelutin.com> Date: Fri Jun 12 10:10:28 2015 +0200 refs #6511 : correction de la documentation d'installation --- src/site/rst/install.rst.vm | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/src/site/rst/install.rst.vm b/src/site/rst/install.rst.vm index 9f0bb40..7d77ee2 100644 --- a/src/site/rst/install.rst.vm +++ b/src/site/rst/install.rst.vm @@ -238,7 +238,8 @@ Installation Lizmap:: **Note** Dans les nouvelles conventions d'Apache2, le repetoire de partage n'est plus **/var/wwww** mais **/var/www/html** . -Dans ce cas, il faudrat modifier la configuration d'echobase comme suit :: +Dans ce cas, il faudrat modifier la configuration d'Echobase comme suit : +:: echobase.lizmap.application.basedir=/var/www/html/echobase-map @@ -253,23 +254,23 @@ Il faut ensuite installer le style adapté pour EchoBase:: chown -R wwww-data:echobase . chmod g+w -R . -Pour tester le server lizmap utilisez l'url : http://localhost/echobase-map/lizmap/www +Pour tester le server lizmap, utilisez l'url : http://localhost/echobase-map/lizmap/www Configuration des répertoires ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Il est possible de modifier la configuration de ces différents répertoires dans la configuration (voir le `détail des options disponibles`_). +Il est possible de modifier ces différents répertoires dans la configuration (voir le `détail des options disponibles`_). -Il peut être necessaire de redefinir l'addresse public du serveur lizmap +Il peut être nécessaire de redéfinir l'addresse public du serveur lizmap :: echobase.lizmap.application.map.url=http://<serveur>/echobase-map/lizmap/www/index.php/view/map -Configuration l'avant-guichet Apache -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Configuration du serveur Apache +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Activez le connecteur tomcat : dans le fichier **/etc/tomcat7/server.xm** ajoutez ou décommentez la ligne:: +Activez le connecteur tomcat : dans le fichier **/etc/tomcat7/server.xml** ajoutez ou décommentez la ligne:: <Connector port="8009" enableLookups="false" redirectPort="8443" protocol="AJP/1.3"/> @@ -340,10 +341,10 @@ Redémarrez le service Apache service apache2 restart -Le site echobase est accesible à l'adresse http://echobase.nomdedomaine.org +Le site Echobase est accesible à l'adresse http://echobase.nomdedomaine.org Et le site de cartographie à l'adresse http://echobase-map.nomdedomaine.org/echobase-map/lizmap/www/index.php -Vous pouvez donc modifier la configuration de echobase avec +Vous pouvez donc modifier la configuration d'Echobase avec :: echobase.lizmap.application.map.url=http://echobase-map.mondedomaine.org/echobase-map/lizmap/www/index.php/view/... -- To stop receiving notification emails like this one, please contact codelutin.com SCM administrator <admin+scm@codelutin.com>.
This is an automated email from the git hooks/post-receive script. New commit to branch feature/6511 in repository echobase. See http://git.codelutin.com/echobase.git commit 33d6dc0f846db2355e19d4b5f8a92c35e11f81a2 Author: Tony CHEMIT <chemit@codelutin.com> Date: Mon Jun 15 16:37:52 2015 +0200 add qgis mapserver version in pom --- pom.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/pom.xml b/pom.xml index ffc99ee..4782985 100644 --- a/pom.xml +++ b/pom.xml @@ -177,6 +177,7 @@ <!-- Lizmap version --> <lizmapVersion>2.9.4</lizmapVersion> + <qgisMapServerVersion>2.0.1</qgisMapServerVersion> </properties> -- To stop receiving notification emails like this one, please contact codelutin.com SCM administrator <admin+scm@codelutin.com>.
This is an automated email from the git hooks/post-receive script. New commit to branch feature/6511 in repository echobase. See http://git.codelutin.com/echobase.git commit f7d5e0ac5e96b19a3cf592808fc943e5a1209389 Author: Tony CHEMIT <chemit@codelutin.com> Date: Mon Jun 15 16:38:06 2015 +0200 update docs --- src/site/rst/configure.rst.vm | 62 +++++++++ src/site/rst/install.rst.vm | 310 +++++++++++++++--------------------------- src/site/rst/update.rst.vm | 59 ++++++++ src/site/site_en.xml | 2 + src/site/site_fr.xml | 2 + 5 files changed, 236 insertions(+), 199 deletions(-) diff --git a/src/site/rst/configure.rst.vm b/src/site/rst/configure.rst.vm new file mode 100644 index 0000000..7538bf1 --- /dev/null +++ b/src/site/rst/configure.rst.vm @@ -0,0 +1,62 @@ +.. - +.. * #%L +.. * EchoBase +.. * %% +.. * Copyright (C) 2011 Ifremer, Codelutin +.. * %% +.. * This program is free software: you can redistribute it and/or modify +.. * it under the terms of the GNU Affero General Public License as published by +.. * the Free Software Foundation, either version 3 of the License, or +.. * (at your option) any later version. +.. * +.. * This program is distributed in the hope that it will be useful, +.. * but WITHOUT ANY WARRANTY; without even the implied warranty of +.. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +.. * GNU General Public License for more details. +.. * +.. * You should have received a copy of the GNU Affero General Public License +.. * along with this program. If not, see <http://www.gnu.org/licenses/>. +.. * #L% +.. - + +======== +Echobase +======== + +Configurer EchoBase sur un serveur +---------------------------------- + +Configuration Coser +~~~~~~~~~~~~~~~~~~~ + +TODO Renseigner l'adresse de l'instance du site des indicateurs à utiliser + +Modifier la configuration par défaut +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +Si vous voulez modifier la configuration (voir le `détail des options disponibles`_), +il faut positionner un fichier nommé **echobase.properties** dans +**/etc/echobase.properties** puis redémarrer tomcat. + +Gestion des logs de l'application +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +Par défaut, l'application utilise l'emplacement **/var/local/echobase/data/logs** +pour y placer ses logs. + +Vous pouvez changer cela en modifiant le fichier +**/var/local/echobase/data/echobase-log.properties** qui est généré lors de la +première installation de l'application. + +Première utilisation +~~~~~~~~~~~~~~~~~~~~ + +Deux utilisateurs sont créés si la base est vide (première utilisation):: + + login / password : admin / admin + login / password : user / user + +Pour des raisons de sécurité, il est conseillé de modifier le mot de passe via +l'interface de gestion des utilisateurs. + +.. _détail des options disponibles: ./config-report.html diff --git a/src/site/rst/install.rst.vm b/src/site/rst/install.rst.vm index 7d77ee2..dd61181 100644 --- a/src/site/rst/install.rst.vm +++ b/src/site/rst/install.rst.vm @@ -36,11 +36,11 @@ Nous préconisons aussi l'utilisation d'un serveur linux de type debian. L'installation se déroule en 2 étapes : -- création de la base de données -- installation de l'application +- installation de la base de données +- installation de l'application (et des applications dont elle dépend (apache, tomcat, qgis, ...) -Installation de postgresql et postgis -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Installation de la base de données +---------------------------------- Il vous faudra peut-être installer un dépot apt pour postgres (voir https://wiki.postgresql.org/wiki/Apt). @@ -49,204 +49,100 @@ L'application requière l'utilisation de postgresql 9.3 (et postgis 2.1). :: - sudo apt-get install postgresql-9.3 - sudo apt-get install postgresql-9.3-postgis-2.1 - sudo apt-get install postgresql-9.3-postgis-2.1-scripts + apt-get install postgresql-9.3 + apt-get install postgresql-9.3-postgis-2.1 + apt-get install postgresql-9.3-postgis-2.1-scripts Consulter la documentation suivante pour `créer une base travail`_. -Installation tomcat -~~~~~~~~~~~~~~~~~~~ - -:: - - sudo apt-get install tomcat7 +Installation de l'applicatif +---------------------------- -Préparation première installation -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +L'application utilise les applicatifs suivants qu'il faut installer et configurer si nécessaire : -Pré-requis: +- tomcat7 +- apache2 +- qgis-map-server +- lizmap -- Avoir installé tomcat 7 -- Être loggué sur une console avec l'utilisateur root. - -On suppose que tomcat a été installé via le système de paquets, et donc -que le répertoire **/var/lib/tomcat7** existe. - -Toutes les données de l'application seront placées dans le répertoire **/var/local/echobase** +Installation tomcat +~~~~~~~~~~~~~~~~~~~ :: - mkdir /var/local/echobase - mkdir -p /var/local/echobase/war - cd /var/local/echobase/war - wget http://nexus.nuiton.org/nexus/content/repositories/other-releases/fr/ifremer/echobase/echobase-ui/${project.version}/echobase-ui-${project.version}-full.war - ln -s /var/local/echobase/war/echobase-ui-${project.version}-full.war /var/local/echobase/echobase.war - cp /var/local/echobase/echobase.war /var/lib/tomcat7/webapps - chown -R tomcat. . + apt-get install tomcat7 -L'application est bien déployée lorsque vous pouvez accéder à l'application à l'adresse suivante : -:: +Activez le connecteur AJP tomcat : dans le fichier **/etc/tomcat7/server.xml** décommentez la ligne:: - http://localhost:8080/echobase - -Une fois l'application déployée, vous aurez la structure de répertoires suivante : -:: - - /var/local/echobase/ - |-- data - | |-- echobase-log.config - | |-- internaldb - | | |-- echobase-user.h2.db - | |-- lib - | | |-- echobase-embedded-${project.version}.war - | | |-- h2-${h2Version}.jar - | | `-- postgresql-${postgresqlVersion}.jar - | |-- logs - | | `-- echobase.log - | `-- gis - | |-- resources - | | |-- France&Spain.shp - | | |-- pelgas09.shp - | | `-- ... - | |-- projects - | `-- templates - | |-- EchoBaseLizmapTemplate.qgs.cfg - | |-- EchoBaseQGisTemplate.qgs - | `-- ... - |-- echobase.war - `-- war - `-- echobase-ui-${project.version}-full.war - - -Mettre à jour le war de l'application -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -Pré-requis : - -- Avoir installé tomcat 7 -- Être loggué sur une console avec l'utilisateur root. + <Connector port="8009" enableLookups="false" redirectPort="8443" protocol="AJP/1.3"/> -On suppose que tomcat a été installé via le système de paquets, et donc -que le répertoire **/var/lib/tomcat7** existe. +Redémarrez le service tomcat:: -Pour utiliser une nouvelle version de l'application, c'est très simple. + service tomcat7 restart -- Supprimer les répertoires suivants : +Installation apache2 +~~~~~~~~~~~~~~~~~~~~ :: - rm -rf /var/lib/tomcat7/webapps/echobase.war - rm -rf /var/lib/tomcat7/Catalina/localhost/echobase + apt-get install apache2 libapache2-mod-fcgid + a2enmod cgid + a2enmod proxy proxy_ajp rewrite + service apache2 restart -- Attendre que le répertoire **/var/lib/tomcat7/webapps/echobase** a bien été supprimé. +Création du groupe utilisateur +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- Mettre l'application dans tomcat : +On crée un group utilisateur nommé *echobase* pour gérer les droits aussi bien au niveau de tomcat que d'apache :: - cd /var/local/echobase/war - wget http://nexus.nuiton.org/nexus/content/repositories/other-releases/fr/ifremer/echobase/echobase-ui/${project.version}/echobase-ui-${project.version}-full.war - unlink /var/local/echobase/echobase.war - ln -s /var/local/echobase/war/echobase-ui-${project.version}-full.war /var/local/echobase/echobase.war - cp /var/local/echobase/echobase.war /var/lib/tomcat7/webapps - -Tomcat va redéployer l'application et elle sera disponible d'ici peu à l'adresse - http://localhost:8080/echobase - -Divers ------- - -Modifier la configuration par défaut -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -Si vous voulez modifier la configuration (voir le `détail des options disponibles`_), -il faut positionner un fichier nommé **echobase.properties** dans -**/etc/echobase.properties** puis redémarrer tomcat. - -Gestion des logs de l'application -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -Par défaut, l'application utilise l'emplacement **/var/local/echobase/data/logs** -pour y placer ses logs. - -Vous pouvez changer cela en modifiant le fichier -**/var/local/echobase/data/echobase-log.properties** qui est généré lors de la -première installation de l'application. - -Première utilisation -~~~~~~~~~~~~~~~~~~~~ - -Deux utilisateurs sont créés si la base est vide (première utilisation):: - - login / password : admin / admin - login / password : user / user + addgroup echobase + adduser www-data echobase + adduser tomcat7 echobase -Pour des raisons de sécurité, il est conseillé de modifier le mot de passe via -l'interface de gestion des utilisateurs. +Installation Qgis map server +~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Visualisation des données spatialisées --------------------------------------- +Nous utilisons la version ${qgisMapServerVersion} de Qgis map server. -EchoBase utilise `Qgis map server`_ et `Lizmap`_ pour la visualisation des données spatialisées (depuis la version 2.7). +Mise à jour des dépôts si nécessaire:: -Qgis map server -~~~~~~~~~~~~~~~ + echo "" >> /etc/apt/sources.list + echo "" >> /etc/apt/sources.list + echo "#Pour installer qgis-mapserver" >> /etc/apt/sources.list + echo "deb http://qgis.org/debian vivid main universe" >> /etc/apt/sources.list -Pour installer Qgis map server : + gpg --keyserver keyserver.ubuntu.com --recv DD45F6C3 + gpg --export --armor DD45F6C3 | sudo apt-key add - -:: - - sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable - sudo apt-get update - sudo apt-get install qgis-server libapache2-mod-fcgid qgis - sudo apt-get install apache2 - sudo a2enmod cgid - sudo service apache2 restart + apt-get update +Installation:: + apt-get install qgis-mapserver qgis L'url : http://localhost/cgi-bin/qgis_mapserv.fcgi?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities doit renvoyer un fichier XML de description des couches disponibles. -Création du groupe d'utilisateur -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -:: - - addgroup echobase - adduser wwww-data echobase - adduser tomcat7 echobase - cd /var/local/echobase - chown -R tomcat7:echobase . - chmod g+w -R . - - -Lizmap -~~~~~~ +Installation Lizmap +~~~~~~~~~~~~~~~~~~~ -Nous utilisons pour le moment la version ${lizmapVersion}. +Nous utilisons la version ${lizmapVersion} de LizMap. -Installation Lizmap:: +Installation:: apt-get install php5 curl php5-curl php5-sqlite php5-gd - cd /var/www/ + mkdir -p /var/www/html + cd /var/www/html wget https://github.com/3liz/lizmap-web-client/archive/${lizmapVersion}.zip unzip ${lizmapVersion}.zip rm ${lizmapVersion}.zip - mv lizmap-web-client-${lizmapVersion} echobase-map - -**Note** - -Dans les nouvelles conventions d'Apache2, le repetoire de partage n'est plus **/var/wwww** mais **/var/www/html** . -Dans ce cas, il faudrat modifier la configuration d'Echobase comme suit : -:: - - echobase.lizmap.application.basedir=/var/www/html/echobase-map + ln -s lizmap-web-client-${lizmapVersion} echobase-map Il faut ensuite installer le style adapté pour EchoBase:: - cd /var/www/echobase-map/lizmap + cd /var/www/html/echobase-map/lizmap wget http://nexus.nuiton.org/nexus/content/repositories/other-releases/fr/ifremer/echobase/echobase-ui/${project.version}/echobase-ui-${project.version}-lizmap.zip unzip echobase-ui-${project.version}-lizmap.zip rm -rf echobase-ui-${project.version}-lizmap.zip @@ -256,46 +152,73 @@ Il faut ensuite installer le style adapté pour EchoBase:: Pour tester le server lizmap, utilisez l'url : http://localhost/echobase-map/lizmap/www +Installation dans tomcat +~~~~~~~~~~~~~~~~~~~~~~~~ -Configuration des répertoires -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +On suppose que tomcat a été installé via le système de paquets, et donc +que le répertoire **/var/lib/tomcat7** existe. -Il est possible de modifier ces différents répertoires dans la configuration (voir le `détail des options disponibles`_). +Toutes les données de l'application seront placées dans le répertoire **/var/local/echobase** -Il peut être nécessaire de redéfinir l'addresse public du serveur lizmap :: - echobase.lizmap.application.map.url=http://<serveur>/echobase-map/lizmap/www/index.php/view/map + mkdir /var/local/echobase + mkdir -p /var/local/echobase/war -Configuration du serveur Apache -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + wget http://nexus.nuiton.org/nexus/content/repositories/other-releases/fr/ifremer/echobase/echobase-ui/${project.version}/echobase-ui-${project.version}-full.war + ln -s /var/local/echobase/war/echobase-ui-${project.version}-full.war /var/local/echobase/echobase.war + cp /var/local/echobase/echobase.war /var/lib/tomcat7/webapps + cd /var/local/echobase + chown -R tomcat7:echobase . + chmod g+w -R . -Activez le connecteur tomcat : dans le fichier **/etc/tomcat7/server.xml** ajoutez ou décommentez la ligne:: +L'application est bien déployée lorsque vous pouvez accéder à l'application à l'adresse suivante : +:: - <Connector port="8009" enableLookups="false" redirectPort="8443" protocol="AJP/1.3"/> + http://localhost:8080/echobase -Redémarrez le service tomcat +Une fois l'application déployée, vous aurez la structure de répertoires suivante : :: - service tomcat7 restart + /var/local/echobase/ + |-- data + | |-- echobase-log.config + | |-- internaldb + | | `-- echobase-user.h2.db + | |-- lib + | | |-- echobase-embedded-${project.version}.war + | | |-- h2-${h2Version}.jar + | | `-- postgresql-${postgresqlVersion}.jar + | |-- logs + | | `-- echobase.log + | `-- gis + | |-- resources + | | |-- France&Spain.shp + | | |-- pelgas09.shp + | | `-- ... + | |-- projects + | `-- templates + | |-- EchoBaseLizmapTemplate.qgs.cfg + | |-- EchoBaseQGisTemplate.qgs + | `-- ... + |-- echobase.war + `-- war + `-- echobase-ui-${project.version}-full.war +Configuration du serveur Apache +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Activez les modules Apache -:: +Pour la suite de l'installation, veuillez exporter le nom de domaine de votre machine:: - a2enmod proxy proxy_ajp rewrite + export DOMAIN=acoustica -Créez le fichier **/etc/apache2/site-available/echobase.conf** -:: +Executez ces commandes (ajout modules apache, création du site echobase):: + cat << EOF > /etc/apache2/sites-available/echobase.conf <VirtualHost *:80> - ServerName echobase.nomdedomaine.org + ServerName echobase.$DOMAIN ProxyRequests Off - - RewriteEngine On - RewriteRule ^/$ http://echobase.nomdedomaine.org/echobase/ [R] - ProxyPass / ajp://localhost:8009/ ProxyPassReverse / ajp://localhost:8009/ @@ -309,45 +232,34 @@ Créez le fichier **/etc/apache2/site-available/echobase.conf** CustomLog /var/log/apache2/echobase-access.log combined </VirtualHost> - -Créez le fichier **/etc/apache2/site-available/echobase.conf** -:: - <VirtualHost *:80> - ServerName echobase-map.nomdedomaine.org + ServerName echobase-map.$DOMAIN ProxyRequests Off RewriteEngine On - RewriteRule ^/$ http://echobase-map.nomdedomaine.org/echobase-map/lizmpa/wwww [R] + RewriteRule ^/$ http://echobase-map.$DOMAIN/echobase-map/lizmap/wwww [R] - DocumentRoot /var/www + DocumentRoot /var/www/html ErrorLog /var/log/apache2/echobase-map-error.log LogLevel warn CustomLog /var/log/apache2/echobase-map-access.log combined </VirtualHost> - - -Activez les sites -:: - + EOF a2ensite echobase.conf - a2ensite echobase-map.conf - -Redémarrez le service Apache -:: - service apache2 restart -Le site Echobase est accesible à l'adresse http://echobase.nomdedomaine.org -Et le site de cartographie à l'adresse http://echobase-map.nomdedomaine.org/echobase-map/lizmap/www/index.php +L'application Echobase est accesible à l'adresse http://echobase.$DOMAIN/echobase +Et le site de cartographie à l'adresse http://echobase-map.$DOMAIN/echobase-map/lizmap/www/index.php Vous pouvez donc modifier la configuration d'Echobase avec :: - echobase.lizmap.application.map.url=http://echobase-map.mondedomaine.org/echobase-map/lizmap/www/index.php/view/... + echo "" >> /etc/echobase.properties + echo "" >> /etc/echobase.properties + echo "echobase.lizmap.application.map.url=http://echobase-map.$DOMAIN/echobase-map/lizmap/www/index.php/view/map" >> /etc/echobase.properties .. _créer une base travail: ./db.html#creation-d-une-base-postgresql diff --git a/src/site/rst/update.rst.vm b/src/site/rst/update.rst.vm new file mode 100644 index 0000000..e6be93d --- /dev/null +++ b/src/site/rst/update.rst.vm @@ -0,0 +1,59 @@ +.. - +.. * #%L +.. * EchoBase +.. * %% +.. * Copyright (C) 2011 Ifremer, Codelutin +.. * %% +.. * This program is free software: you can redistribute it and/or modify +.. * it under the terms of the GNU Affero General Public License as published by +.. * the Free Software Foundation, either version 3 of the License, or +.. * (at your option) any later version. +.. * +.. * This program is distributed in the hope that it will be useful, +.. * but WITHOUT ANY WARRANTY; without even the implied warranty of +.. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +.. * GNU General Public License for more details. +.. * +.. * You should have received a copy of the GNU Affero General Public License +.. * along with this program. If not, see <http://www.gnu.org/licenses/>. +.. * #L% +.. - + +======== +Echobase +======== + +Mise à jour d'une version d'EchoBase sur un serveur +--------------------------------------------------- + +Pré-requis: + +- L'application doit déjà être installé dans le répertoire /var/local/echobase +- Être loggué sur une console avec l'utilisateur root. + +On suppose que tomcat a été installé via le système de paquets, et donc +que le répertoire **/var/lib/tomcat7** existe. + +Pour utiliser une nouvelle version de l'application, c'est très simple. + +- Supprimer les répertoires suivants : + +:: + + rm -rf /var/lib/tomcat7/webapps/echobase.war + rm -rf /var/lib/tomcat7/Catalina/localhost/echobase + +- Attendre que le répertoire **/var/lib/tomcat7/webapps/echobase** a bien été supprimé. + +- Mettre l'application dans tomcat : + +:: + + cd /var/local/echobase/war + wget http://nexus.nuiton.org/nexus/content/repositories/other-releases/fr/ifremer/echobase/echobase-ui/${project.version}/echobase-ui-${project.version}-full.war + unlink /var/local/echobase/echobase.war + ln -s /var/local/echobase/war/echobase-ui-${project.version}-full.war /var/local/echobase/echobase.war + cp /var/local/echobase/echobase.war /var/lib/tomcat7/webapps + +Tomcat va redéployer l'application et elle sera disponible d'ici peu à l'adresse + http://localhost:8080/echobase diff --git a/src/site/site_en.xml b/src/site/site_en.xml index 7540db5..928e142 100644 --- a/src/site/site_en.xml +++ b/src/site/site_en.xml @@ -72,6 +72,8 @@ <menu name="Administration"> <item name="Download" href="https://forge.codelutin.com/projects/echobase/files"/> <item name="Install" href="install.html"/> + <!--<item name="Update" href="update.html"/>--> + <!--<item name="Configure" href="configure.html"/>--> </menu> <menu name="User"> diff --git a/src/site/site_fr.xml b/src/site/site_fr.xml index 17fc442..e371461 100644 --- a/src/site/site_fr.xml +++ b/src/site/site_fr.xml @@ -73,6 +73,8 @@ <menu name="Administration"> <item name="Téléchargement" href="https://forge.codelutin.com/projects/echobase/files"/> <item name="Installation" href="install.html"/> + <item name="Mise à jour" href="update.html"/> + <item name="Configuration" href="configure.html"/> </menu> <menu name="Utilisateur"> -- To stop receiving notification emails like this one, please contact codelutin.com SCM administrator <admin+scm@codelutin.com>.
This is an automated email from the git hooks/post-receive script. New commit to branch feature/6511 in repository echobase. See http://git.codelutin.com/echobase.git commit ccc4df8f3c6ba35e6862dbe4bb05d9d155bccf9d Author: Tony CHEMIT <chemit@codelutin.com> Date: Mon Jun 15 16:38:32 2015 +0200 update default option value --- .../java/fr/ifremer/echobase/config/EchoBaseConfigurationOption.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/echobase-domain/src/main/java/fr/ifremer/echobase/config/EchoBaseConfigurationOption.java b/echobase-domain/src/main/java/fr/ifremer/echobase/config/EchoBaseConfigurationOption.java index 9eb621e..740fa75 100644 --- a/echobase-domain/src/main/java/fr/ifremer/echobase/config/EchoBaseConfigurationOption.java +++ b/echobase-domain/src/main/java/fr/ifremer/echobase/config/EchoBaseConfigurationOption.java @@ -117,7 +117,7 @@ public enum EchoBaseConfigurationOption implements ConfigOptionDef { File.class), LIZMAP_APPLICATION_BASEDIR("echobase.lizmap.application.basedir", n("echobase.config.lizmap.application.basedir.description"), - "/var/www/echobase-map", + "/var/www/html/echobase-map", File.class), LIZMAP_APPLICATION_CONFIG_FILE("echobase.lizmap.application.config.file", n("echobase.config.lizmap.application.config.file.description"), -- To stop receiving notification emails like this one, please contact codelutin.com SCM administrator <admin+scm@codelutin.com>.
This is an automated email from the git hooks/post-receive script. New commit to branch feature/6511 in repository echobase. See http://git.codelutin.com/echobase.git commit 25845d113206345dbca5bbb3c7822adb09d45c4f Author: Tony CHEMIT <chemit@codelutin.com> Date: Mon Jun 15 16:38:50 2015 +0200 change doc url in gis jsp --- echobase-ui/src/main/webapp/WEB-INF/jsp/spatial/show.jsp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/echobase-ui/src/main/webapp/WEB-INF/jsp/spatial/show.jsp b/echobase-ui/src/main/webapp/WEB-INF/jsp/spatial/show.jsp index 693014e..48f0350 100644 --- a/echobase-ui/src/main/webapp/WEB-INF/jsp/spatial/show.jsp +++ b/echobase-ui/src/main/webapp/WEB-INF/jsp/spatial/show.jsp @@ -72,7 +72,7 @@ <%-- Application has no gis support --%> <p class="fontsize11"> <s:text name="echobase.message.application.no.gis.support"/> - <s:a href="%{getDocumentation('install.html', 'Visualisation_des_donnes_spatialises')}" + <s:a href="%{getDocumentation('install.html')}" target='#doc'> <s:text name="echobase.message.gis.install"/> </s:a> -- To stop receiving notification emails like this one, please contact codelutin.com SCM administrator <admin+scm@codelutin.com>.
participants (1)
-
codelutin.com scm