grails - 在自定义的Grails环境中,如何在不重新启动的情况下将代码更改为自动更新

标签 grails sts-springsourcetoolsuite grails-2.0

我有一个自定义的Grails环境:

在开发过程中,出于多种原因,我必须使用此自定义环境而不是dev环境。

我可以在Config.groovy中为我的自定义环境设置一些东西,以允许将我的IDE GGTS(Groovy&Grails工具套件)中保存的代码更改自动推送到本地运行的应用程序中,就像在开发中一样。

目前,在执行自定义运行应用程序并对源进行任何更改之后,这些更改不会反射(reflect)在本地运行的应用程序中。我必须重新启动服务器才能看到更改。

您如何获得自定义的Grails环境以像开发环境那样执行?

最佳答案

您可以使用--reloading标志,例如

grails -Dgrails.env=custom --reloading run-app

关于grails - 在自定义的Grails环境中,如何在不重新启动的情况下将代码更改为自动更新,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13904304/

相关文章:

jsp - Grails - 使用自定义 JSP 标签库

tomcat - Grails - 无法读取外部配置值

mysql - 使用sts、maven、mysql和tomcat创建本地环境

spring - StaleObjectStateException : Row was updated or deleted by another transaction?

firefox - Geb Firefox 驱动程序 : why my test runs twice?

grails - SubmitToRemote在Grails中不起作用

json - JSON获取全数字

eclipse - 配置Eclipse单词边界,以便 'Next-Word-Key'跳过整个标识符

Spring STS(新建服务器向导)

grails - 如何将值附加到grails中的url