本地主机上的grails run-app:8080而不是:8080 / appName? [英] grails run-app on localhost:8080 instead of :8080/appName?
问题描述
有没有办法让grails run-app在 localhost:8080 /
而不是 localhost:8080 / $ {appName}
?
在 Config.groovy中,,设置
grails。 serverUrl
完全没有影响 - 它似乎只影响不同grails方法的绝对url生成。
在生产中,我使用apache虚拟主机来掩码 site.com:8080/appName
作为 site.com
。我想让我的测试配置匹配生产。
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.com:8080/appName
as site.com
. I want to make my test configuration match production.
How about
grails.app.context = "/"
in Config.groovy
, as per this jira discussion?
这篇关于本地主机上的grails run-app:8080而不是:8080 / appName?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!