Closed nonetallt closed 1 month ago
Try with JVM variable: ./gradlew -Dapplication.env=dev joobyRun
Try with JVM variable:
./gradlew -Dapplication.env=dev joobyRun
Thank you.
I tried running ./gradlew -Dapplication.env=local joobyRun
but ended up with error: Task '.env=local' not found in root project
.
I managed to fix this by quoting the variable: ./gradlew -D"application.env=local" joobyRun
.
Question
Is it possible to set the application environment when executing the application via
./gradlew joobyRun
?There's an example in the docs for
java -jar myapp.jar application.env=foo
but I couldn't find any way of passing the argument tojoobyRun
task. Based on theJoobyRunOptions
class in the module source code, I guessapplication.env
is not one of the supported options?How should I set the environment to use my local testing configuration while using
joobyRun
?