playframework - Play 2.3, Git and IDEA: universal path to embedded database -


my problem create embedded database in project folder share git. if set explicit path like:

c:/users/<user>/projects/<project> 

it works fine. if pulls project git, gets wrong path. idea set universal path. if try:

jdbc:h2:file:./db 

the database created in folder /program files/idea/...

if try:

jdbc:h2:file:~/db 

the database created in folder /users/user/..., not in folder of project.

is there way set universal path of project?

thanks help!

according h2's faq should without anything, no . or ~. store database project's folder path_to_my_project/database/mydbfile can use:

 jdbc:h2:database/mydbfile 

Comments

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -