Specifying environment for run-app

I may be missing something, but how does one specify which enironment to run from IntelliJ?

If I choose "Run Application", there is a box for "Grails Parameters". If I put "production" in there, I see from the console it is appending production after "run-app"

e.g.:
run-app production

However from the console it looks like its running with the development settings:

>>Environment set to development

This Jira item looks similar,but it is fixed:
http://jetbrains.net/jira/browse/GRVY-1278

I'm on Selena 7718 and JetGroovy 1.5.17497

4 comments
Comment actions Permalink

I never used the dropdown box, but I always use -Dgrails.env=production in the settings dialog.

0
Comment actions Permalink

Cool. Didn't know that. Thanks!

It would be nice if the grails app parameters would process this option without the -D param though.

Thanks again!

0
Comment actions Permalink

I was trying this under edit configurations

-Dserver.port=8081

In the JVM args.

Which settings dialogue are you describing? Somewhere in the 'project settings'?

0
Comment actions Permalink

Sorry - that does work - I had used that port as well.

0

Please sign in to leave a comment.