Hello all. A noob question. I have two environment...
# ktor
r
Hello all. A noob question. I have two environments,
development
and
deployment
. How do I switch between them?
Copy code
ktor {
    development {
        port = 8091
        port = ${?DEV_PORT}
    }
    deployment {
        port = 8090
        port = ${?PORT}
    }
    application {
        modules = [ com.rjdesenvolvimento.aries.ApplicationKt.module ]
    }
}
m
I use different config resources and specify the path when starting the server JAR:
… -Dconfig.resource=development.conf
👍 3
r
I changed for this.
and i tried
java -jar "my-file.jar" -Dconfig.resource=development.conf
but nothing changed
m
Maybe before specifying the JAR?
👍 2
e
Off topic but what IDE/theme is that @Rodrigo Silva
r
@efemoney Jebrains IntellIJ with
image.png,image.png
e
Got it. Looks great.
r
True.. I like 😃
👌 1