开发者

How to remove app name and port from url in grails?

开发者 https://www.devze.com 2023-03-06 03:23 出处:网络
Instead o开发者_开发问答f deploying my app to http://localhost:8080/myApp I want to deploy it to

Instead o开发者_开发问答f 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
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号