right way to make updates
Posted: Wed Sep 10, 2014 9:47 am
Hi there
I am experimenting with the BroadLeaf demo and try to make some changes to the site,
I notice that the most reliable way is to stop-all then restart the jetty-demo ant tasks.
For simple html changes, maven install will do the trick, but more complex things such as tweating the xml configuration files, maven install just don't reflect the changes.
The "problem" with restarting jetty is that it will wipe out the database, and I know about hibernate.hbm2ddl.auto property should be changed from 'create-drop' to 'update'... but unfortunately sometimes the app won't start at all if I change to 'update'.
What's the right way to make changes that preserve the database structure (and data)?
I am experimenting with the BroadLeaf demo and try to make some changes to the site,
I notice that the most reliable way is to stop-all then restart the jetty-demo ant tasks.
For simple html changes, maven install will do the trick, but more complex things such as tweating the xml configuration files, maven install just don't reflect the changes.
The "problem" with restarting jetty is that it will wipe out the database, and I know about hibernate.hbm2ddl.auto property should be changed from 'create-drop' to 'update'... but unfortunately sometimes the app won't start at all if I change to 'update'.
What's the right way to make changes that preserve the database structure (and data)?