本地主机上的grails run-app:8080而不是:8080 / appName? [英] grails run-app on localhost:8080 instead of :8080/appName?

查看:157
本文介绍了本地主机上的grails run-app:8080而不是: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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆