Reputation: 1332
How do we change the default port 8080 to something else in Grails 3.0.9?
Upvotes: 0
Views: 728
Reputation: 1332
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
Upvotes: 3