deploy:edit deploy shell

This commit is contained in:
fanxb 2023-03-07 23:11:34 -05:00
parent 45939d62a2
commit 4eecb4f832
3 changed files with 4 additions and 3 deletions

View File

@ -2,8 +2,7 @@
base=$(cd "$(dirname "$0")";pwd)
cd $base
rm -rf openRenamerBackend/dist
docker run -it --rm --name buildOpenRenamer --user ${UID} -v $base/openRenamerFront:/opt/front node:lts-buster-slim bash -c "cd /opt/front && npm install -g pnpm --registry https://registry.npmmirror.com && pnpm install --registry https://registry.npmmirror.com && pnpm run build"
# docker run -it --rm --name buildOpenRenamer --user ${UID} -v $base/openRenamerBackend:/opt/app node:lts-buster-slim bash -c "cd /opt/app && npm config set registry https://registry.npmmirror.com && npm install -g typescript && npm install && tsc"
docker run -it --rm --name buildOpenRenamer --user ${UID} -v $base/openRenamerFront:/opt/front node:lts-slim bash -c "cd /opt/front && npm install -g pnpm --registry https://registry.npmmirror.com && pnpm install --registry https://registry.npmmirror.com && pnpm run build"
rm -rf openRenamerBackend/static/*
touch openRenamerBackend/static/.gitkeep

View File

@ -1 +1 @@
npm install -g pnpm && pnpm install && node dist/index.js
npm install -g pnpm typescript --registry https://registry.npmmirror.com && pnpm install --registry https://registry.npmmirror.com && tsc && node dist/index.js

View File

@ -22,3 +22,5 @@ pnpm-debug.log*
*.njsproj
*.sln
*.sw?
.pnpm-store