开发者

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

开发者 https://www.devze.com 2023-01-14 03:34 出处:网络
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).

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

0

精彩评论

暂无评论...
验证码 换一张
取 消