ediarum / ediarum.WEB.template

GNU Lesser General Public License v3.0
2 stars 2 forks source link

[QUESTION] How to get the app going with autodeploy on eXist-DB #1

Open Kolophonium0 opened 2 days ago

Kolophonium0 commented 2 days ago

Maybe someone here can help me: I tried to deploy this app over a cp to the autodeploy dir in eXist-DB what doesnt work out. I can only install this app via the package manager what isnt feasable in our infrastructure, any hints?

MartinFechner commented 2 days ago

There are different approaches to deploy eXist apps: 1. via the Dashboard, 2. via XQuery (https://exist-db.org/exist/apps/doc/repo#programm-install) 3. via bash script, 4. via ant

Here an example for 3.

for XAR in libs/deploy/*.xar; do
    echo Installing $XAR
    curl --upload-file $XAR -u 'admin:' http://localhost:8080/exist/rest/db/system/repo/init.xar
    curl -u 'admin:' 'http://localhost:8080/exist/rest/db?_xpath=repo:install-and-deploy-from-db("/db/system/repo/init.xar")'
done

Does this help?