fixing sample-data flag via gw -Psample-data in code+documentation
This commit is contained in:
parent
6efa167427
commit
4c42d15c12
@ -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,
|
||||
|
||||
|
@ -165,6 +165,9 @@ liquibase {
|
||||
defaultSchemaName ''
|
||||
logLevel 'debug'
|
||||
classpath 'src/main/resources/'
|
||||
if (project.hasProperty('sample-data')) {
|
||||
contexts 'sample-data'
|
||||
}
|
||||
}
|
||||
diffLog {
|
||||
driver ''
|
||||
|
@ -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
|
||||
|
@ -18,5 +18,3 @@ spring:
|
||||
jpa:
|
||||
database-platform: io.github.jhipster.domain.util.FixedH2Dialect
|
||||
database: H2
|
||||
liquibase:
|
||||
contexts: dev
|
||||
|
@ -15,5 +15,3 @@ spring:
|
||||
jpa:
|
||||
database-platform: io.github.jhipster.domain.util.FixedPostgreSQL82Dialect
|
||||
database: POSTGRESQL
|
||||
liquibase:
|
||||
contexts: dev
|
||||
|
Loading…
Reference in New Issue
Block a user