I'm using grails 2.0.4. And I want to use port:8090 instead of 8080 for localhost. So need help to change the port to 8090 permanently.
Running a Grails Application Using run-appGo to the application directory. For example, go to the as-install /grails/samples/helloworld directory. Run the grails run-app command. The grails run-app command starts the Enterprise Server in the background and runs the application in one step.
This solution adds to the answers http://stackoverflow.com/a/10956283/122457. In Grails 2.x, add the following to BuildConfig.groovy
:
grails.server.port.http = 8090
See http://forum.springsource.org/archive/index.php/t-97024.html for further details.
There are two options:
grails.serverURL
in Config.groovy
from "http://localhost:8080/${appName}"
to "http://localhost:8090/${appName}"
. -Dgrails.server.port.http=8090
on the command line. Set the GRAILS_OPTS
environment variable to -Dgrails.server.port.http=8090
to have it applied automatically.If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With