[Git][ultreiaio/ird-t3][develop] immprove readme of installer - Closes #329
Tony CHEMIT pushed to branch develop at ultreiaio / ird-t3 Commits: 77987e46 by Tony CHEMIT at 2018-05-18T08:49:34Z immprove readme of installer - Closes #329 - - - - - 2 changed files: - src/site/markdown/installer.md.vm - t3-installer/src/main/assembly/dist/README.md Changes: ===================================== src/site/markdown/installer.md.vm ===================================== --- a/src/site/markdown/installer.md.vm +++ b/src/site/markdown/installer.md.vm @@ -67,7 +67,7 @@ Son contenu est relu à chaque nouveau lancement. # Remplir une nouvelle base -**Il faut que la base soit créée (mais sans schéma) et que l'extension postgis soit installée**. +**Il faut que la base soit créée (mais sans schéma)**. Sous Linux, Mac ``` ===================================== t3-installer/src/main/assembly/dist/README.md ===================================== --- a/t3-installer/src/main/assembly/dist/README.md +++ b/t3-installer/src/main/assembly/dist/README.md @@ -1,11 +1,5 @@ # T3 Console -### Before using database commands - -First fill the **db.properties** file with correct values. - -Then use the command you need :). - ## Create a database This will create the database on postgres server, then fill it. ``` @@ -16,6 +10,8 @@ or create-db.bat dbName ``` +**Please see Notes section for more details.** + ## Fill a database This will just fill a database on postgres server. @@ -28,6 +24,8 @@ or fill-db.bat dbName ``` +**Please see Notes section for more details.** + ## Translate application This will open a GUI to translate application. ``` @@ -37,3 +35,39 @@ or ``` translate.bat ``` + +## Notes + +For ```create-db``` or ```fill-db``` commands, the software will ask you three questions: + + * login to connect to database + * password to connect to database + * url pattern to use + +Those values will be stored in a file named ```t3-installer.conf``` and reused at next launch. + +If stored value is ok with you, just press enter. + +Note also that the url pattern must ends with %s (which represents the db name you have given on command line). + +Example on a first launch: +``` +sh create-db.sh myT3Db +Listening for transport dt_socket at address: 8000 +Starting T3 Console with arguments: [--create-db, myT3Db] at Fri May 18 10:40:10 CEST 2018 +Login [Not defined]: t3-admin +Password [Not defined]: pass +Url [jdbc:postgresql:%s]: +INFO [main] (fr.ird.t3.console.T3DatabaseTool:95) createOrFill - 1/5 - Setup and connect to database... +``` + +Next launch: +``` +sh create-db.sh myT3Db +Listening for transport dt_socket at address: 8000 +Starting T3 Console with arguments: [--create-db, myT3Db] at Fri May 18 10:40:10 CEST 2018 +Login [t3-admin]: +Password [pass]: +Url [jdbc:postgresql:%s]: +INFO [main] (fr.ird.t3.console.T3DatabaseTool:95) createOrFill - 1/5 - Setup and connect to database... +``` View it on GitLab: https://gitlab.com/ultreiaio/ird-t3/commit/77987e46420e412b87c639b475ab9c550... -- View it on GitLab: https://gitlab.com/ultreiaio/ird-t3/commit/77987e46420e412b87c639b475ab9c550... You're receiving this email because of your account on gitlab.com.
participants (1)
-
Tony CHEMIT