本地主机上的grails run

编程入门 行业动态 更新时间:2024-10-25 22:37:12
本文介绍了本地主机上的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

本文发布于:2023-10-07 12:44:45,感谢您对本站的认可!
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:机上   地主   run   grails

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!