deploy
This commit is contained in:
parent
9b1f3f725d
commit
45939d62a2
4
build.sh
4
build.sh
@ -2,8 +2,8 @@
|
|||||||
base=$(cd "$(dirname "$0")";pwd)
|
base=$(cd "$(dirname "$0")";pwd)
|
||||||
cd $base
|
cd $base
|
||||||
rm -rf openRenamerBackend/dist
|
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 && yarn --registry https://registry.npmmirror.com && yarn build"
|
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/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"
|
||||||
|
|
||||||
rm -rf openRenamerBackend/static/*
|
rm -rf openRenamerBackend/static/*
|
||||||
touch openRenamerBackend/static/.gitkeep
|
touch openRenamerBackend/static/.gitkeep
|
||||||
|
@ -1 +1 @@
|
|||||||
npm install && node dist/index.js
|
npm install -g pnpm && pnpm install && node dist/index.js
|
||||||
|
Loading…
x
Reference in New Issue
Block a user