fixing sample-data flag via gw -Psample-data in code+documentation

This commit is contained in:
Michael Hoennig 2019-05-05 14:13:17 +02:00
parent 6efa167427
commit 4c42d15c12
5 changed files with 5 additions and 8 deletions

View File

@ -41,7 +41,7 @@ To use an **H2 in-memory database** populated with sample-data.
To use an **H2 file-based database**, start the application with the h2file profile:
gw bootRun -Ph2file
gw bootRun -Ph2file,sample-data # populated with sample data
gw bootRun -Ph2file -Psample-data # populated with sample data
To use a **local Postgres database**, first prepare your environment:
@ -54,7 +54,7 @@ Where `DBNAME`, `DBUSER` and `DBPASS` are replaced by your credentials.
Then start the application with the pgsql profile:
gw bootRun -Ppgsql
gw bootRun -Ppgsql,sample-data # populated with sample data
gw bootRun -Ppgsql -Psample-data # populated with sample data
To use a **remote Postgres database** on a hostsharing server,

View File

@ -165,6 +165,9 @@ liquibase {
defaultSchemaName ''
logLevel 'debug'
classpath 'src/main/resources/'
if (project.hasProperty('sample-data')) {
contexts 'sample-data'
}
}
diffLog {
driver ''

View File

@ -49,8 +49,6 @@ spring:
hibernate.cache.use_second_level_cache: false
hibernate.cache.use_query_cache: false
hibernate.generate_statistics: true
liquibase:
contexts: dev
mail:
host: localhost
port: 25

View File

@ -18,5 +18,3 @@ spring:
jpa:
database-platform: io.github.jhipster.domain.util.FixedH2Dialect
database: H2
liquibase:
contexts: dev

View File

@ -15,5 +15,3 @@ spring:
jpa:
database-platform: io.github.jhipster.domain.util.FixedPostgreSQL82Dialect
database: POSTGRESQL
liquibase:
contexts: dev