mirror of
https://github.com/linux-do/new-api.git
synced 2025-11-12 17:13:43 +08:00
Update makefile and user model, add Telegram integration
This commit is contained in:
8
makefile
8
makefile
@@ -1,7 +1,7 @@
|
||||
FRONTEND_DIR = ./web
|
||||
BACKEND_DIR = .
|
||||
|
||||
.PHONY: all start-frontend start-backend
|
||||
.PHONY: all build-frontend start-backend
|
||||
|
||||
all: start-frontend start-backend
|
||||
|
||||
@@ -9,12 +9,6 @@ build-frontend:
|
||||
@echo "Building frontend..."
|
||||
@cd $(FRONTEND_DIR) && npm install && DISABLE_ESLINT_PLUGIN='true' REACT_APP_VERSION=$(cat VERSION) npm run build npm run build
|
||||
|
||||
# 启动前端开发服务器
|
||||
start-frontend:
|
||||
@echo "Starting frontend dev server..."
|
||||
@cd $(FRONTEND_DIR) && npm start &
|
||||
|
||||
# 启动后端开发服务器
|
||||
start-backend:
|
||||
@echo "Starting backend dev server..."
|
||||
@cd $(BACKEND_DIR) && go run main.go &
|
||||
|
||||
Reference in New Issue
Block a user