Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

grails

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 seed the database.

like image 687
Bill Avatar asked Nov 14 '22 07:11

Bill


1 Answers

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

like image 57
Aaron Saunders Avatar answered Jun 10 '23 16:06

Aaron Saunders