Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Merge pull request #4 from deki/java.io.tmpdir
Browse files Browse the repository at this point in the history
use java.io.tmpdir config value instead of hardcoded /tmp folder
  • Loading branch information
wicked539 authored Jan 22, 2018
2 parents c347727 + 9c9a251 commit 6efe8ea
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/resources/application-development-h2.properties
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
## db credentials - h2
spring.h2.console.path=/h2-console
spring.h2.console.enabled=true
spring.datasource.url:jdbc:h2:file:/tmp/selavi;AUTO_SERVER=TRUE;DB_CLOSE_ON_EXIT=FALSE
spring.datasource.username:sa
spring.datasource.password:
spring.datasource.url=jdbc:h2:file:${java.io.tmpdir}/selavi;AUTO_SERVER=TRUE;DB_CLOSE_ON_EXIT=FALSE
spring.datasource.username=sa
spring.datasource.password=
spring.datasource.initialize=true
# liquibase
liquibase.drop-first=true
liquibase.change-log=classpath:/db/changelog/db.changelog-master.xml
liquibase.url=jdbc:h2:file:/tmp/selavi;AUTO_SERVER=TRUE;DB_CLOSE_ON_EXIT=FALSE
liquibase.url=jdbc:h2:file:${java.io.tmpdir}/selavi;AUTO_SERVER=TRUE;DB_CLOSE_ON_EXIT=FALSE
liquibase.user=sa
liquibase.password=
# the app is deployed as /selavi on the gateway, so we set tomcat's deployment path to the same value
Expand Down

0 comments on commit 6efe8ea

Please sign in to comment.