update to master

This commit is contained in:
YouROK
2021-06-08 14:12:32 +03:00
parent 009b51f578
commit 533ab85f9f
89 changed files with 46034 additions and 8804 deletions

14
docker-all.sh Executable file
View File

@@ -0,0 +1,14 @@
#!/bin/bash
ROOT=${PWD}
#### Build web
echo "Build web"
cd "${ROOT}/web" || exit 1
npm install --silent
npm run --silent build-js
cp "${ROOT}/web/dest/index.html" "${ROOT}/server/web/pages/template/pages/"
cd ..
sudo docker run --rm -v "$PWD":/usr/src/torr -w /usr/src/torr golang:1.16 ./build-all.sh
sudo chmod 0777 ./dist/*