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.
For grails 3 you can put this in your application.yml
server:
port: 9999
You can run grails app using the following command on the terminal. default running port is 8080.
grails run-app -Dserver.port=9090
This will run the app on port 9090.
If you are using Netbeans IDE then set the following -:
Config: -> BuildConfig.groovy: -> grails.server.port.http = 8090 and restart the server.
Without IDE, type in the command prompt -:
grails -Dserver.port 8090 run-app
or
grails -Dserver.port=8090 run-app
Type following in the command line:
grails -Dserver.port=8090 run-app
Run the command (Ctrl+Alt+g)
run-app -Dserver.port=8090
run-app --port=8090