deploy:edit deploy shell
This commit is contained in:
parent
45939d62a2
commit
4eecb4f832
3
build.sh
3
build.sh
@ -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
|
||||
|
@ -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
|
||||
|
2
openRenamerFront/.gitignore
vendored
2
openRenamerFront/.gitignore
vendored
@ -22,3 +22,5 @@ pnpm-debug.log*
|
||||
*.njsproj
|
||||
*.sln
|
||||
*.sw?
|
||||
|
||||
.pnpm-store
|
Loading…
x
Reference in New Issue
Block a user