mirror of
https://github.com/linuxserver/davos.git
synced 2026-04-20 00:01:51 +08:00
Updates to config for different environments
This commit is contained in:
parent
0e3fdfedf0
commit
f55fcded37
4
.gitignore
vendored
4
.gitignore
vendored
@ -33,4 +33,6 @@ overridedb.*
|
||||
.idea
|
||||
.DS_Store
|
||||
.factorypath
|
||||
davos.log
|
||||
davos.log
|
||||
src/main/resources/application.properties
|
||||
src/main/resources/log4j2.xml
|
||||
|
||||
@ -93,8 +93,11 @@ task updateBuildVersion << {
|
||||
|
||||
task copyConfig(type: Copy) {
|
||||
|
||||
from 'conf/app/application.${env}.properties'
|
||||
from 'conf/app/log4j2.${env}.xml'
|
||||
def location = project.hasProperty('env') ? "$env" : 'local'
|
||||
|
||||
to 'src/main/resources/'
|
||||
from "conf/${location}"
|
||||
into "src/main/resources/"
|
||||
}
|
||||
|
||||
build.dependsOn copyConfig
|
||||
build.mustRunAfter copyConfig
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user