modified: .gitignore

new file:   serv_nginx/api_bb/Makefile
	new file:   serv_nginx/serv_golang_rest_api/Makefile
	new file:   yalarba/serv_spa/spa/vue/Makefile
remove Makefile from .gitignore, set makes for api_bb
This commit is contained in:
2025-10-15 02:58:21 +05:00
parent 0024d03635
commit c0c8c3392a
4 changed files with 61 additions and 2 deletions
+1 -2
View File
@@ -21,8 +21,7 @@ coverage
*.sln *.sln
*.sw? *.sw?
*.tsbuildinfo *.tsbuildinfo
*.node_modules *.node_modules
*Makefile
/node_modules /node_modules
/.pnp /.pnp
.pnp.js .pnp.js
+12
View File
@@ -0,0 +1,12 @@
BB=bb_api
all: build
stop_bb:
docker compose down api_bb
build_bb:
docker compose build ${BB} --no-cache
run_bb: build
docker compose up api_bb -d
+35
View File
@@ -0,0 +1,35 @@
.PHONY: build run test clean migrate
# Переменные
APP_NAME=serv_golang_rest_api
DOCKER_COMPOSE=docker compose
# Сборка и запуск
build:
$(DOCKER_COMPOSE) build
up:
$(DOCKER_COMPOSE) up -d
down:
$(DOCKER_COMPOSE) down
logs:
$(DOCKER_COMPOSE) logs -f api
# Разработка
dev:
$(DOCKER_COMPOSE) up db -d
go run ./cmd/api
test:
go test ./...
# Миграции
migrate:
$(DOCKER_COMPOSE) exec api ./main migrate
# Очистка
clean:
$(DOCKER_COMPOSE) down -v
docker system prune -f
+13
View File
@@ -0,0 +1,13 @@
build:
npm run build
run:
npm run dev
deploy:
npm run build
git add .
git commit -m 'build deploy'
git push
.DEFAULT_GOAL := run