Instead of deploying my app to
http://localhost:8080/myApp
I want to deploy it to
http://localhost
Instead of deploying my app to
http://localhost:8080/myApp
I want to deploy it to
http://localhost
To change the run-app port, edit grails-app/conf/BuildConfig.groovy
and add the line
grails.server.port.http = 80
To remove the context (the 'myApp' part) edit application.properties and add the line
app.context=/
deploy your app to a tomcat server with the war name as ROOT.war. Because war names describe contexts... papa.war will be available through [root_domain]/papa
To remove the port, use:
grails -Dserver.port=80 run-app
© 2022 - 2024 — McMap. All rights reserved.
Config.groovy
:grails.app.context="/"
. Not sure but application.properties is auto generated file, so it is safe to add inConfig.groovy
– Noaccount