公告
财富商城
积分规则
提问
发文
2020-02-09 07:22发布
狗以群分
Instead of deploying my app to
http://localhost:8080/myApp
I want to deploy it to
http://localhost
To remove the port, use:
grails -Dserver.port=80 run-app
To change the run-app port, edit grails-app/conf/BuildConfig.groovy and add the line
grails-app/conf/BuildConfig.groovy
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
最多设置5个标签!
To remove the port, use:
To change the run-app port, edit
grails-app/conf/BuildConfig.groovy
and add the lineTo remove the context (the 'myApp' part) edit application.properties and add the line
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