mirror of
https://github.com/rjNemo/rentease.git
synced 2026-06-06 02:36:49 +00:00
20 lines
438 B
Makefile
20 lines
438 B
Makefile
NAME=rentease
|
|
PORT=8000
|
|
DB_USER=ruidy
|
|
DB_NAME=villafleurie
|
|
|
|
build: format lint templ
|
|
@docker build -t ${NAME}:latest .
|
|
run: build
|
|
@docker run -p ${PORT}:${PORT} -e DATABASE_URL="host=docker.for.mac.host.internal user=${DB_USER} database=${DB_NAME}" -e PORT=${PORT} ${NAME}
|
|
dev: templ
|
|
@air cmd/main.go
|
|
templ:
|
|
@templ generate
|
|
format:
|
|
@templ fmt .
|
|
@go fmt ./...
|
|
lint:
|
|
@golangci-lint run ./...
|
|
|
|
.PHONY: build run dev templ format lint
|