aboutsummaryrefslogtreecommitdiffhomepage
path: root/sundry/spine_search_cgi/.envrc-local_
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2021-10-05 12:55:42 -0400
committerRalph Amissah <ralph.amissah@gmail.com>2021-11-27 19:40:46 -0500
commitabe7e7688d045982a28cfb22b8f6269269dd6cf5 (patch)
tree10f0348dd04a9e11f32f0b5d2b6e3c97505ccb9c /sundry/spine_search_cgi/.envrc-local_
parentxmls homepage link (diff)
sqlite related internal naming
Diffstat (limited to 'sundry/spine_search_cgi/.envrc-local_')
-rw-r--r--sundry/spine_search_cgi/.envrc-local_9
1 files changed, 6 insertions, 3 deletions
diff --git a/sundry/spine_search_cgi/.envrc-local_ b/sundry/spine_search_cgi/.envrc-local_
index e79a418..440b597 100644
--- a/sundry/spine_search_cgi/.envrc-local_
+++ b/sundry/spine_search_cgi/.envrc-local_
@@ -13,6 +13,7 @@ export SpineDOC=/grotto-ra/repo/git.repo/projects/project-spine/doc-reform-marku
export SpinePOD=$SpineDOC/markup/pod
#export SpineOUTversioned=/srv/www/spine/$SpineVER
export SpineOUT=/srv/www/spine
+export SpineDBpath=/var/www/sqlite
export SpineCgiBIN=/var/www/cgi/cgi-bin
echo '-*- mode: org -*-
@@ -91,7 +92,7 @@ $SpineBIN/spine -v --html --html-link-search --html-link-curate --sqlite-db-file
*** generate sql output
#+BEGIN_SRC sh
-SpineBIN/spine -v --sqlite-update --sqlite-db-filename="spine.search.db" --output=$SpineOUT $SpinePOD/*
+SpineBIN/spine -v --sqlite-update --sqlite-db-filename="spine.search.db" --sqlite-db-path="$SpineDBpath"
#+END_SRC
*** generate curate
@@ -104,13 +105,15 @@ $SpineBIN/spine -v --html --html-link-curate --curate --output=$SpineOUT $Spine
*** create or re-create sql db (--sqlite-db-create or --sqlite-db-recreate)
#+BEGIN_SRC sh
-$SpineBIN/spine -v --sqlite-db-recreate --sqlite-db-filename="spine.search.db" --output="$SpineOUT"
+$SpineBIN/spine -v --sqlite-db-recreate --sqlite-db-filename="spine.search.db" --sqlite-db-path="$SpineDBpath"
#+END_SRC
*** generate html (linked to search form), sql output, curate
#+BEGIN_SRC sh
-$SpineBIN/spine -v --html --html-link-search --html-link-curate --curate --sqlite-db-filename="spine.search.db" --cgi-sqlite-search-filename="spine_search" --sqlite-update --output=$SpineOUT $SpinePOD/*
+$SpineBIN/spine -v --html --html-link-search --html-link-curate --curate --sqlite-db-filename="spine.search.db" --cgi-sqlite-search-filename="spine_search" --sqlite-update --sqlite-db-path="$SpineDBpath" --output="$SpineOUT" $SpinePOD/*
+#if names and paths are configured in resource configuration file, e.g. $SpinePOD/.rc/config_local_site
+$SpineBIN/spine -v --html --html-link-search --html-link-curate --curate --sqlite-update $SpinePOD/*
#+END_SRC
*** make search form