Does Grails run the Bootstrap.groovy script when deploying the app as a war?
Bootstrap executes fine during run-app (database is seeded). But it doesn't appear to get invoked when Tomcat deploys the war (nothing in the database).
Does the Bootstrap get run during war deployment? If not, is there a way to make it run?
Specifically I am wanting my sample data to s开发者_开发问答eed the database.
Yes it does....
i would look to make sure you have your environments configured properly if you see thing working in development, but not production
精彩评论