本文介绍了本地主机上的grails run-app:8080而不是:8080 / appName?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有办法让grails run-app在 localhost:8080 / 而不是 localhost:8080 / $ {appName} ?
在 Config.groovy中,,设置 grails。 serverUrl 完全没有影响 - 它似乎只影响不同grails方法的绝对url生成。
在生产中,我使用apache虚拟主机来掩码 site:8080/appName 作为 site 。我想让我的测试配置匹配生产。
解决方案pre> grails.app.context =/
in Config.groovy ,根据这个 jira的讨论?
Is there a way to get grails run-app to launch on localhost:8080/ instead of localhost:8080/${appName}?
In Config.groovy,, setting grails.serverUrl has absolutely no effect - it only seems to affect absolute url generation of different grails methods.
In production, I use apache virtualhosts to mask site:8080/appName as site. I want to make my test configuration match production.
解决方案How about
grails.app.context = "/"in Config.groovy, as per this jira discussion?
更多推荐
本地主机上的grails run
发布评论