From: Dan Brown Date: Fri, 2 Feb 2024 12:38:32 +0000 (+0000) Subject: Fixed build/deploy ordering X-Git-Url: http://source.bookstackapp.com/website/commitdiff_plain/d02f31b87fe9477b2bb308c568a56ce7cb42fcbb?ds=sidebyside Fixed build/deploy ordering Search index DBs were being built after hugo so they were not being added into that copy of the public code to be deployed. This flips that so the search is built to be included in the hugo build. --- diff --git a/package.json b/package.json index 1e4a20e..75b97dd 100644 --- a/package.json +++ b/package.json @@ -11,11 +11,11 @@ "build:hugo:watch": "hugo serve -DF", "build:search": "./search/webidx.pl public ./static/search.db", "build:search:compress": "brotli -fZk ./static/search.db && gzip -fk9 ./static/search.db", - "build": "npm-run-all --sequential build:css:prod build:hugo:prod build:search", + "build": "npm-run-all --sequential build:css:prod build:search build:hugo:prod", "serve": "npm-run-all build:hugo:watch", "dev": "npm-run-all --parallel build:hugo:watch build:css:watch", "deploy:server": "rsync -avx --delete --exclude '.git/' --exclude 'node_modules/' --exclude 'search/data/' ./ bs-site:/var/www/bookstackapp.com/", - "deploy": "npm-run-all --sequential build:css:prod build:hugo:prod build:search build:search:compress deploy:server", + "deploy": "npm-run-all --sequential build:css:prod build:search build:search:compress build:hugo:prod deploy:server", "test": "echo \"Error: no test specified\" && exit 1" }, "author": "Dan Brown",