https://kotlinlang.org logo
Title
r

Rodrigo Silva

07/16/2020, 1:09 PM
Hello all. A noob question. I have two environments,
development
and
deployment
. How do I switch between them?
ktor {
    development {
        port = 8091
        port = ${?DEV_PORT}
    }
    deployment {
        port = 8090
        port = ${?PORT}
    }
    application {
        modules = [ com.rjdesenvolvimento.aries.ApplicationKt.module ]
    }
}
m

Marc Knaup

07/16/2020, 3:15 PM
I use different config resources and specify the path when starting the server JAR:
… -Dconfig.resource=development.conf
👍 3
r

Rodrigo Silva

07/16/2020, 6:53 PM
I changed for this.
and i tried
java -jar "my-file.jar" -Dconfig.resource=development.conf
but nothing changed
m

Marc Knaup

07/16/2020, 7:46 PM
Maybe before specifying the JAR?
👍 2
e

efemoney

07/17/2020, 10:55 AM
Off topic but what IDE/theme is that @Rodrigo Silva
r

Rodrigo Silva

07/17/2020, 2:40 PM
@efemoney Jebrains IntellIJ with
e

efemoney

07/17/2020, 2:41 PM
Got it. Looks great.
r

Rodrigo Silva

07/17/2020, 2:43 PM
True.. I like 😃
👌 1