In IntelliJ, I want to create a run configuration that will execute run-app
in a custom environment named "demo". The following works fine on the command-line
grails run-app -Dgrails.env=demo
But inside IntelliJ, if I enter either
run-app -Dgrails.env=demo
or
-Dgrails.env=demo run-app
in the "Command line" field of the "Run/Debug Configuration" dialog, neither of them start the app in the correct environment.
Run Configuration dialog has separated text fields for jvm options and command arguments. You have to put '-Dgrails.env=demo' to 'VM options' field.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With