0

In Grails 2.4.2 I'm having

grails.server.port.http = 18080
grails.server.port.https = 18443

in BuildConfig.groovy.

Nonetheless grails run-app starts on the default ports.

Do we have another approach for it?

Thanks!

saw303
  • 8,051
  • 7
  • 50
  • 90
rawi
  • 521
  • 3
  • 13
  • possible duplication: http://stackoverflow.com/questions/10955899/how-to-change-grails-localhost-port – Mario David Jul 28 '14 at 10:50
  • Thanks Mario. Your're right about the duplication. But it's the best regarded answer there, and the docs (setting the ports with system properties in BuildConf.groovy), which are not working here. – rawi Jul 28 '14 at 11:34
  • how does `-Dgrails.server.port.http=18080` works out? if it works, you can set the port via the system properties and not via grails at all. – Mario David Jul 28 '14 at 11:39
  • it is working from command line.But which system properties do you mean? I thought "grails.server.port.http" would be the system property for that? – rawi Jul 28 '14 at 11:54
  • you are right, i thought that -Dgrails.server.port.http could be set in a persistent way, but i'm not sure about one. What is your settings for `grails.serverURL` in `config.groovy`? – Mario David Jul 28 '14 at 12:48
  • None. As I (also) need https, I didn't know what I should write in grails.serverURL in config.groovy. So I set the ports only in BuildConfig.groovy - but they won't be taken from there - as said – rawi Jul 28 '14 at 13:02

0 Answers0