From ed218a7b80bc372b93f57ddd138466bae235a3df Mon Sep 17 00:00:00 2001 From: fanxb Date: Tue, 29 Nov 2022 23:31:44 +0800 Subject: [PATCH 1/2] deploy:fix --- build.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/build.sh b/build.sh index 19124f4..cde2dda 100644 --- a/build.sh +++ b/build.sh @@ -2,6 +2,7 @@ base=$(cd "$(dirname "$0")";pwd) 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.npmmirror.com && yarn build" +docker run -it --rm --name buildOpenRenamer -v $base/openRenamerBackend:/app node:lts-buster-slim bash -c "cd /app && npm config set registry=https://registry.npmmirror.com && npm install -g typescript && tsc" rm -rf openRenamerBackend/static/* touch openRenamerBackend/static/.gitkeep From e32fee491f86473ae683d8d3d609a8698b01bd19 Mon Sep 17 00:00:00 2001 From: fanxb Date: Tue, 29 Nov 2022 23:32:31 +0800 Subject: [PATCH 2/2] fix --- openRenamerBackend/start.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openRenamerBackend/start.sh b/openRenamerBackend/start.sh index 116e886..d064bb2 100644 --- a/openRenamerBackend/start.sh +++ b/openRenamerBackend/start.sh @@ -1 +1 @@ -npm config set registry=https://registry.npmmirror.com && npm install typescript -g && npm install && tsc && node dist/index.js \ No newline at end of file +npm config set registry=https://registry.npmmirror.com && npm install && tsc && node dist/index.js \ No newline at end of file