Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IntelliJ run configuration for Grails environment

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.

like image 894
Dónal Avatar asked Nov 29 '11 14:11

Dónal


1 Answers

Run Configuration dialog has separated text fields for jvm options and command arguments. You have to put '-Dgrails.env=demo' to 'VM options' field.

like image 145
Sergey Avatar answered Oct 19 '22 00:10

Sergey