Ronin 0.9.1 + Tosa

3 views
Skip to first unread message

Y

unread,
Nov 10, 2011, 9:32:55 PM11/10/11
to ronin
Any way to play with the db on ronin startup and have the tables exist
from the ddl? We have code in the RoninConfig, but that appears to be
before the ddl gets pushed into the db and we have to start the server
twice to get it there.

Gus Prevas

unread,
Nov 10, 2011, 9:38:58 PM11/10/11
to ronin...@googlegroups.com
Not sure I understand the question.  Can you be more specific about your environment (what DB you're using, how you're running Ronin) and what exactly you're trying to do?

Carson Gross

unread,
Nov 10, 2011, 10:16:15 PM11/10/11
to ronin...@googlegroups.com
Seems like your RoninConfig should execute after the db upgrade.  I'll take a look at why it isn't.

I'm going to try to figure out a way that you guys can work with source versions of Ronin and Tosa, so you can fix issues/propose patches as you go.

Cheers,
Carson

Carson Gross

unread,
Nov 10, 2011, 10:41:42 PM11/10/11
to ronin...@googlegroups.com
OK, so it looks to me like we lazily initialize the database in tosa (I'm going by what I see in the code, this might be wrong).  I'm looking at the latest version of Tosa, so this API may be totally different with what you've got, but from what I see, you may want to try this:

  DBLocator.Database.DBUpgrader.recreateTables()

I'll investigate more tomorrow.

Cheers,
Carson

Vyktur with a Y

unread,
Nov 11, 2011, 12:11:58 AM11/11/11
to ronin...@googlegroups.com
I also saw that Jetty is starting before H2 in DevServer.java. Switching the order of startup solves my problem. I can issue a pull request with the change.

Y
Reply all
Reply to author
Forward
0 new messages