我如何禁用在grails 3.0.0应用程序中重新加载? [英] how can I disable reloading in a grails 3.0.0 app?
问题描述
我可以在开发模式下禁用重新加载吗?
有没有在build.gradle或application.yml中设置的键?
不知道是否它有助于在上述情况下。
grails -Dserver.port = 8090 -Dserver.env = development我在Grails 2.3.8下面使用禁用自动编译。 -Denable.jndi = true -Ddisable.auto.recompile = true run-app
其中
disable.auto.recompile = true
禁用自动编译和自动重载更改。
server.env
- 您希望应用程序运行的环境。
server.port
- 应用程序将运行的端口
您可以在Gradle构建中设置这些变量。 p>
It appears that the spring reloading causes errors with JDK 8u40 in Grails 3.0.0.M2. Can I disable the reloading in development mode? Is there a key to set in the build.gradle or in the application.yml?
Not sure if it helps in above case. I use below over grails 2.3.8 to disable auto compile.
grails -Dserver.port=8090 -Dserver.env=development -Denable.jndi=true -Ddisable.auto.recompile=true run-app
where
disable.auto.recompile=true
disables autocompile and autoreload of changes .
server.env
- the environment in which you want the application to run.
server.port
- port on which application will run
enable.jndi
- to enable jndi support
You may set these variables in Gradle build.
这篇关于我如何禁用在grails 3.0.0应用程序中重新加载?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!