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

0

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

0
Avatar
Permanently deleted user

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

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

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

0

请先登录再写评论。