branch develop updated (3303c764 -> 1b8fd65f)
This is an automated email from the git hooks/post-receive script. New change to branch develop in repository pollen. See https://gitlab.nuiton.org/chorem/pollen.git from 3303c764 [ISO] QA - Java new 1b8fd65f Fix documentation about mvn tomcat7:run The 1 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 1b8fd65f51d7fd27cb633f3d8c39e4b8b09243e6 Author: Yannick Martel <martel@codelutin.com> Date: Tue Mar 17 10:29:33 2020 +0100 Fix documentation about mvn tomcat7:run Summary of changes: README.md | 24 +++++++++++++++++----- .../services/config/PollenServicesConfig.java | 2 +- 2 files changed, 20 insertions(+), 6 deletions(-) -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.
This is an automated email from the git hooks/post-receive script. New commit to branch develop in repository pollen. See https://gitlab.nuiton.org/chorem/pollen.git commit 1b8fd65f51d7fd27cb633f3d8c39e4b8b09243e6 Author: Yannick Martel <martel@codelutin.com> Date: Tue Mar 17 10:29:33 2020 +0100 Fix documentation about mvn tomcat7:run --- README.md | 24 +++++++++++++++++----- .../services/config/PollenServicesConfig.java | 2 +- 2 files changed, 20 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index f0e14f0d..ea042f15 100644 --- a/README.md +++ b/README.md @@ -17,9 +17,9 @@ Pour plus d'information consultez notre site [doc.pollen.cl](http://doc.pollen.c ### L'API REST -Précondtion : Maven +Précondition : Maven -A la raçine du projet lancer : +À la raçine du projet lancer : mvn clean install @@ -33,7 +33,22 @@ L'API est disponible à l'URL `http://localhost:8888/pollen-rest-api` Exemple : -http://localhost:8080/pollen-rest-api/v1/users retourne la liste des utilisateurs. +http://localhost:8888/pollen-rest-api/v1/users retourne la liste des utilisateurs. + +#### Configuration minimale du backend + +Par défaut, le backend sera lancé avec une base `H2` qui enregistre dans un fichier les données.\ +Il faut par conséquent configurer le dossier où sera écrit ce fichier avec la variable `pollen.data.directory`. + +Cette configuration se fait à l'aide d'un fichier `pollen-rest-api.properties` qui peut être placé dans : +- `/etc/pollen-rest-api.properties` ou `~/.config/pollen-rest-api.properties` (préférable pour une configuration par utilisateur) pour un environnement GNU/Linux +- quelque part pour Windows + +Cela donne un fichier minimal de la sorte : +```properties +pollen.data.directory=/var/local/pollen/db +``` + ### l'interface utilisateur @@ -57,5 +72,4 @@ L'UI est disponible à l'URL `http://localhost:8080` Les URLs peuvent être personalisées par les variables d'environements suivantes : * `POLLEN_SERVER_CONTEXT` : Définit pour l'UI, l'URL de l'API REST (ex : `http://<serveur>:<port>/pollen-rest-api`) - * `POLLEN_UI_CONTEXT` : Définit le domaine de l'UI (ex : `<serveur>:<port>`) - \ No newline at end of file + * `POLLEN_UI_CONTEXT` : Définit le domaine de l'UI (ex : `<serveur>:<port>`) diff --git a/pollen-services/src/main/java/org/chorem/pollen/services/config/PollenServicesConfig.java b/pollen-services/src/main/java/org/chorem/pollen/services/config/PollenServicesConfig.java index bc550f48..9cce4c05 100644 --- a/pollen-services/src/main/java/org/chorem/pollen/services/config/PollenServicesConfig.java +++ b/pollen-services/src/main/java/org/chorem/pollen/services/config/PollenServicesConfig.java @@ -93,7 +93,7 @@ public class PollenServicesConfig extends GeneratedPollenServicesConfig { private void validate() { File dataDirectory = getDataDirectory(); - Preconditions.checkState(dataDirectory != null, "missing configuration directive, please set " + PollenServicesConfigOption.DATA_DIRECTORY.getKey()); + Preconditions.checkState(dataDirectory != null, "missing configuration directive, please set " + PollenServicesConfigOption.DATA_DIRECTORY.getKey() + " in your pollen-rest-api.properties file"); if (dataDirectory.exists()) { Preconditions.checkArgument(dataDirectory.isDirectory(), dataDirectory + " exists but is not a directory"); Preconditions.checkArgument(dataDirectory.canWrite(), dataDirectory + " directory exists but it is not writable"); -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.
participants (1)
-
chorem.org scm