Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Use Grails production mode with Intellij IDEA

I try to running a grails application in production mode, I see the tutorial in Grails homepage, but I don't have the selectable "configuration Type".

I have a Grails Script parameter field, try to use "production word", but it change nothing ; always in development mode. An idea to force "production mode" with intelliJ IDEA ?

Thanks

Note : using IDEA 8.1.3.

like image 887
Fabien Barbier Avatar asked Dec 17 '22 05:12

Fabien Barbier


1 Answers

If you are doing it via a Run Configuration you can add -Dgrails.env=prod in the VM parameters section. If you're using the Run Grails Script command I don't think there is anyway to do it.

You should try out the latest EAP, it has better run support than the old 8.1 version.

like image 82
leebutts Avatar answered Jan 05 '23 22:01

leebutts