Change data directory for basex & BaseXGUI
Wednesday, 15 May 2019 · 4 messages · last reply 16 May 2019
MS
Majewski, Steven Dennis (sdm7g)15 May 2019 20:33 #
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
MS
Majewski, Steven Dennis (sdm7g)15 May 2019 20:51 #
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.
Quoted text · Steven Dennis (sdm7g) · 16 lines
> On May 15, 2019, at 2:33 PM, Majewski, Steven Dennis (sdm7g) <sdm7g at 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 >
MS
Majewski, Steven Dennis (sdm7g)15 May 2019 21:39 #
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.
Quoted text · Steven Dennis (sdm7g) · 28 lines
> On May 15, 2019, at 2:51 PM, Majewski, Steven Dennis (sdm7g) <sdm7g at 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 at virginia.edu <mailto:sdm7g at 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 >> >
CG
Christian Grün16 May 2019 19:30 #
Hi Steve,
Quoted text · Majewski, Steven Dennis (sdm7g) · 2 lines
> 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.
Quoted text · Steven Dennis (sdm7g) · 29 lines
> On May 15, 2019, at 2:51 PM, Majewski, Steven Dennis (sdm7g) <sdm7g at 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 at 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 > > >
Written for BaseX 9.2. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery