deploy:修改部署脚本

This commit is contained in:
fanxb 2022-07-18 14:35:05 +08:00
parent 658eb59925
commit ad673f0e26
3 changed files with 3 additions and 1888 deletions

View File

@ -1,7 +1,8 @@
#!/bin/bash #!/bin/bash
base=$(cd "$(dirname "$0")";pwd) base=$(cd "$(dirname "$0")";pwd)
cd $base cd $base
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.npm.taobao.org && yarn build" 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 -v $base/openRenamerBackend:/app node:lts-buster-slim bash -c "cd /app && yarn config set registry=https://registry.npmmirror.com && yarn global add typescript && tsc"
rm -rf openRenamerBackend/static/* rm -rf openRenamerBackend/static/*
touch openRenamerBackend/static/.gitkeep touch openRenamerBackend/static/.gitkeep

File diff suppressed because it is too large Load Diff

View File

@ -1 +1 @@
yarn config set registry https://registry.npm.taobao.org && yarn global add typescript && yarn && tsc && node dist/index.js yarn config set registry=https://registry.npmmirror.com && yarn && node dist/index.js