This is an automated email from the ASF dual-hosted git repository. sbglasius pushed a commit to branch docs/grails-8-announcement in repository https://gitbox.apache.org/repos/asf/grails-static-website.git
commit 1b9f66a69b1efe090e89c3983a730a49d7ceb86d Author: Søren Berg Glasius <[email protected]> AuthorDate: Thu Oct 8 10:09:35 2026 +0200 Warn against training the AOT cache against a production database --- posts/2026-10-08-introducing-grails-8.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/posts/2026-10-08-introducing-grails-8.md b/posts/2026-10-08-introducing-grails-8.md index 98c3c3b0b6f..6dd4d9c7da7 100644 --- a/posts/2026-10-08-introducing-grails-8.md +++ b/posts/2026-10-08-introducing-grails-8.md @@ -287,7 +287,9 @@ grails { } ``` -Enabling it adds an `extractAotCacheApplication` task and a `trainAotCache` task, which you run explicitly. Training unpacks the executable jar into `build/aot-cache/application`, runs it over the listed paths, and writes the cache beside it: +Enabling it adds an `extractAotCacheApplication` task and a `trainAotCache` task, which you run explicitly. Training unpacks the executable jar into `build/aot-cache/application`, runs it over the listed paths, and writes the cache beside it. + +**Warning:** training is a real run of the application, in the `production` environment by default. It executes bootstrap code, connects to whatever the configuration points at, and writes whatever that code writes. Point it at a build-time or throwaway database, never at production. ```shell ./gradlew trainAotCache
