Author: echatellier Date: 2009-09-09 12:45:06 +0200 (Wed, 09 Sep 2009) New Revision: 2774 Modified: trunk/src/site/fr/rst/index.rst trunk/src/site/fr/rst/install.rst trunk/src/site/rst/index.rst trunk/src/site/rst/install.rst Log: Add documentation about embedded war. Modified: trunk/src/site/fr/rst/index.rst =================================================================== --- trunk/src/site/fr/rst/index.rst 2009-09-09 10:05:20 UTC (rev 2773) +++ trunk/src/site/fr/rst/index.rst 2009-09-09 10:45:06 UTC (rev 2774) @@ -5,7 +5,7 @@ ----------------------------- Pollen est une application de vote web. Elle est destinée aux petites entitées -qui veulent un moyen simple de gérer des votes tout enrestant maîtres de leurs +qui veulent un moyen simple de gérer des votes tout en restant maître de leurs données. Pourquoi Pollen est super ? Modified: trunk/src/site/fr/rst/install.rst =================================================================== --- trunk/src/site/fr/rst/install.rst 2009-09-09 10:05:20 UTC (rev 2773) +++ trunk/src/site/fr/rst/install.rst 2009-09-09 10:45:06 UTC (rev 2774) @@ -1,12 +1,15 @@ Installation ============ -:Author: Nolwenn Rannou <rannou@codelutin.com> -:Revision: $Revision: 2760 $ -:Date: $Date: 2009-08-27 17:10:53 +0200 (jeu 27 aoû 2009) $ +.. Author: Nolwenn Rannou <rannou@codelutin.com> +.. Revision: $Revision: 2760 $ +.. Date: $Date: 2009-08-27 17:10:53 +0200 (jeu 27 aoû 2009) $ -Pour installer l'application il suffit de déployer l'archive war dans un conteneur Web comme Tomcat. +Conteneur Web +------------- +Pour installer l'application il suffit de déployer l'archive war dans un conteneur Web comme Tomcat_. + Par défaut une base de donnée H2 est créée dans le répertoire */tmp*. Pour modifier ce comportement par défaut il suffit de créer le fichier */etc/pollen.properties* et de le remplir avec les propriétés suivantes :: # Configuration de la base de données @@ -44,3 +47,19 @@ Il peut-être nécessaire de redéployer l'application après avoir modifié ce fichier. Un utilisateur avec les droits d'administration est créé automatiquement (identifiant "admin", mot de passe "pollen"). Par mesure de sécurité il est important de supprimer cet utilisateur après avoir créer un autre compte administrateur. + +Conteneur embarqué +------------------ + +Depuis pollen-1.1.1, il est possible de le lancer avec un conteneur embarqué +seulement en disposant du fichier war. + +Pour cela, lancez pollen avec la commande suivante : + +:: + + java -jar pollen-x.x.x.war + +Ensuite, ouvrez un navigateur à l'adresse : http://localhost:8080 + +.. _Tomcat: http://tomcat.apache.org/ \ No newline at end of file Modified: trunk/src/site/rst/index.rst =================================================================== --- trunk/src/site/rst/index.rst 2009-09-09 10:05:20 UTC (rev 2773) +++ trunk/src/site/rst/index.rst 2009-09-09 10:45:06 UTC (rev 2774) @@ -15,7 +15,7 @@ - You can import voters lists from CSV files or LDAP. - You can import/export votes/polls. - You can install Pollen on your own server to keep the control on your data - (confidential vote for exemple). + (confidential vote for example). - Pollen is build as services so you can integrate it wherever you want. - Pollen is Libre so you can modify it, improve it, adapt it to your needs. - Pollen as a nice looking. Modified: trunk/src/site/rst/install.rst =================================================================== --- trunk/src/site/rst/install.rst 2009-09-09 10:05:20 UTC (rev 2773) +++ trunk/src/site/rst/install.rst 2009-09-09 10:45:06 UTC (rev 2774) @@ -1,12 +1,17 @@ Installation guide ================== -:Author: Nolwenn Rannou <rannou@codelutin.com> -:Revision: $Revision$ -:Date: $Date$ +.. Author: Nolwenn Rannou <rannou@codelutin.com> +.. Revision: $Revision$ +.. Date: $Date$ +.. contents:: + +Web container +------------- + To install the application, you just need to deploy the war archive in a web -contener like Tomcat. +container like Tomcat_. By default, a H2 database is created in the */tmp* directory. To modify this behaviour, you only need to create the */etc/pollen.properties* file and to fill @@ -44,9 +49,24 @@ hibernate.connection.driver_class=org.postgresql.Driver hibernate.default_schema=public -It may be necessary to redeploy the application after having modificated this +It may be necessary to redeploy the application after having modified this file; A user with administration rights is automatically added (login "admin", password "pollen"). For safety measures, it is really important to delete this user (or modify its password) after having created another administrator account. + +Embedded container +------------------ + +Since pollen-1.1.1, the war bundle embed a servlet container based on winstone. +To run it, just launch with following command : + +:: + + java -jar pollen-x.x.x.war + + +Then open a browser to addess : http://localhost:8080/ + +.. _Tomcat: http://tomcat.apache.org/ \ No newline at end of file