Change data directory for basex & BaseXGUI
I’ve been learning and testing basex with the default MacOS home-brew installation. For production, I’m planning on using the war file served using tomcat. I would like to use the basex command line client and BaseXGUI to do some initial setup and testing on the tomcat web app databases. Is there a java property setting or other way to set the data directory location for these programs ? Or do I have to set these paths in ~/basex/.basex file . The latter is not ideal, as I may need to run update scripts from different user cron jobs, so I’ld rather not depend on home directory. — Steve Majewski
Nevermind. I couldn’t find it on my first hour of searching the docs. Then I found it 5 minutes after asking for help! http://docs.basex.org/wiki/Configuration <http://docs.basex.org/wiki/Configuration> — Steve M.
On May 15, 2019, at 2:33 PM, Majewski, Steven Dennis (sdm7g) <sdm7g@virginia.edu> wrote:
I’ve been learning and testing basex with the default MacOS home-brew installation.
For production, I’m planning on using the war file served using tomcat.
I would like to use the basex command line client and BaseXGUI to do some initial setup and testing on the tomcat web app databases.
Is there a java property setting or other way to set the data directory location for these programs ? Or do I have to set these paths in ~/basex/.basex file .
The latter is not ideal, as I may need to run update scripts from different user cron jobs, so I’ld rather not depend on home directory.
— Steve Majewski
Although, a bit confusing: I set the database path in basexgui to match the value in web.xml ( The setting is commented out, but I assumed that was because it was the default value. ) <context-param> <param-name>org.basex.dbpath</param-name> <param-value>WEB-INF/data</param-value> </context-param> But web app couldn’t see the database I created there. I moved created DB directory from webapp/basex/WEB-INF/data/ into webapp/basex/data/ and restarted, And the webapp finds it there.
On May 15, 2019, at 2:51 PM, Majewski, Steven Dennis (sdm7g) <sdm7g@virginia.edu> wrote:
Nevermind. I couldn’t find it on my first hour of searching the docs. Then I found it 5 minutes after asking for help!
http://docs.basex.org/wiki/Configuration <http://docs.basex.org/wiki/Configuration>
— Steve M.
On May 15, 2019, at 2:33 PM, Majewski, Steven Dennis (sdm7g) <sdm7g@virginia.edu <mailto:sdm7g@virginia.edu>> wrote:
I’ve been learning and testing basex with the default MacOS home-brew installation.
For production, I’m planning on using the war file served using tomcat.
I would like to use the basex command line client and BaseXGUI to do some initial setup and testing on the tomcat web app databases.
Is there a java property setting or other way to set the data directory location for these programs ? Or do I have to set these paths in ~/basex/.basex file .
The latter is not ideal, as I may need to run update scripts from different user cron jobs, so I’ld rather not depend on home directory.
— Steve Majewski
Hi Steve,
I set the database path in basexgui to match the value in web.xml ( The setting is commented out, but I assumed that was because it was the default value. )
Yes, that was just an example. I am glad to hear you got it going.
On May 15, 2019, at 2:51 PM, Majewski, Steven Dennis (sdm7g) <sdm7g@virginia.edu> wrote:
Nevermind. I couldn’t find it on my first hour of searching the docs. Then I found it 5 minutes after asking for help!
http://docs.basex.org/wiki/Configuration
— Steve M.
On May 15, 2019, at 2:33 PM, Majewski, Steven Dennis (sdm7g) <sdm7g@virginia.edu> wrote:
I’ve been learning and testing basex with the default MacOS home-brew installation.
For production, I’m planning on using the war file served using tomcat.
I would like to use the basex command line client and BaseXGUI to do some initial setup and testing on the tomcat web app databases.
Is there a java property setting or other way to set the data directory location for these programs ? Or do I have to set these paths in ~/basex/.basex file .
The latter is not ideal, as I may need to run update scripts from different user cron jobs, so I’ld rather not depend on home directory.
— Steve Majewski
participants (2)
-
Christian Grün -
Majewski, Steven Dennis (sdm7g)