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

后端 未结 3 1978
名媛妹妹
名媛妹妹 2020-12-15 19:49

Instead of deploying my app to

http://localhost:8080/myApp

I want to deploy it to

http://localhost
3条回答
  •  鱼传尺愫
    2020-12-15 20:13

    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=/
    

提交回复
热议问题