0

How do we change the default port 8080 to something else in Grails 3.0.9?

tim_yates
  • 167,322
  • 27
  • 342
  • 338
kgthegreat
  • 1,172
  • 9
  • 10

1 Answers1

3

Through command line

This answer has a way which works

grails run-app --port=8090

Also, while stopping

grails stop-app --port=8090 

The following may or may not work depending on grails version

grails run-app -Dserver.port=8090

Through configuration

Say to change it to 8090, add the following snippet to grails-app/conf/application.yml

server:
     port: 8090

under

environments:
     development:

so that it looks like

environments:
     development:
           server:
                port: 8090
Community
  • 1
  • 1
kgthegreat
  • 1,172
  • 9
  • 10