views:

219

answers:

2

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.

+5  A: 

Hi,

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.

cheers

Lee

leebutts
Thank you, exactly what I'm need !
Fabien Barbier
A: 

Thanks a lot Lee!!! works very well.....Ariel

Ariel