Default sandalone profile

This commit is contained in:
Claude Brisson
2024-01-27 09:48:52 +01:00
parent 10bf5b41b6
commit aa4f86b0e2
2 changed files with 2 additions and 1 deletions

View File

@@ -68,6 +68,8 @@ private fun readProperties() {
if (properties.exists()) { if (properties.exists()) {
serverProps.load(FileReader(properties)) serverProps.load(FileReader(properties))
} }
val env = if (File("./pom.xml").exists()) "dev" else "prod"
serverProps["env"] = env
} }
private fun publishProperties() { private fun publishProperties() {

View File

@@ -1,5 +1,4 @@
mode = standalone mode = standalone
env = prod
# webapp connector # webapp connector
webapp.protocol = http webapp.protocol = http
webapp.interface = localhost webapp.interface = localhost