Does Grails Bootstrap.groovy script execute when deploying the app as a war?

Bootstrap runs fine during application startup (the database is seeded). But it does not seem to be called when Tomcat is deploying a war (nothing in the database).

Does Bootstrap run during war deployment? If not, is there a way to run it?

In particular, I want my sample data to unload the database.

+4
source share
1 answer

Yes it is....

I would look to make sure your settings are set up properly if you see something working in development but not production

+1
source

All Articles