mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
Docker script updates
This commit is contained in:
parent
2eb6bb9a49
commit
e561cc871b
3 changed files with 31 additions and 6 deletions
|
@ -34,8 +34,7 @@ makeNextSubmodule() {
|
|||
ln -sf "$PWD/submodules/${1}/out" "$PWD/nextStatic/${2}"
|
||||
}
|
||||
|
||||
log 'Making project'
|
||||
log "Installing node modules for server"
|
||||
log "Making project"
|
||||
npm install
|
||||
npm audit fix
|
||||
npm run export
|
||||
|
@ -75,13 +74,15 @@ setupJson publicDirs/qminingPublic/news.json
|
|||
touch publicDirs/qminingPublic/version
|
||||
touch publicDirs/qminingPublic/motd
|
||||
|
||||
if [ -z "$(ls -A ./src/standaloneUtils)" ]; then
|
||||
if [ -z "$(ls -A ./data/dbs)" ]; then
|
||||
pushd src/standaloneUtils
|
||||
NS_LOGLEVEL=2 node dbSetup.js
|
||||
mv *db ../../data/dbs
|
||||
mv *.db ../../data/dbs
|
||||
popd
|
||||
fi
|
||||
|
||||
npx --yes next telemetry disable
|
||||
|
||||
hr
|
||||
echo "Done!"
|
||||
echo "npm start {loglevel}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue