Add Makefile, add announcement API, update FE

This commit is contained in:
BennyThink
2021-06-15 17:28:17 +08:00
parent 010e787edb
commit 3caced8035
5 changed files with 94 additions and 5 deletions

16
Makefile Normal file
View File

@@ -0,0 +1,16 @@
default:
make dev
dev:
rm -f YYeTsFE/.env
git checkout docker-compose.yml
git pull
git submodule update --remote
cp .env YYeTsFE/.env
docker build -t bennythink/yyetsbot .
cp ../docker-compose.yml ./docker-compose.yml
docker-compose up -d
clean:
docker rmi bennythink/yyetsbot:latest