This commit is contained in:
EyreFree
2023-06-03 05:35:30 +08:00
parent 942e482ca4
commit f667b35403
4 changed files with 62 additions and 0 deletions

27
Startup.sh Normal file
View File

@@ -0,0 +1,27 @@
# 前端
if ! command -v node > /dev/null; then
printf 'node is not installed.\n'
exit 1
fi
cd web
npm install
npm run build
cd ..
# 后端
if ! command -v go > /dev/null; then
printf 'go is not installed.\n'
exit 1
fi
cd src
go mod tidy
make linux
cd ..
# Docker
if ! command -v docker > /dev/null; then
printf 'docker is not installed.\n'
exit 1
fi
docker compose up -d