29 lines
488 B
Makefile
29 lines
488 B
Makefile
export APP_ENV ?= local
|
|
export HTTP_ADDR ?= :8080
|
|
export DATABASE_URL ?= postgres://nomadcode:nomadcode@localhost:5432/nomadcode?sslmode=disable
|
|
export GOOSE_DRIVER ?= postgres
|
|
export GOOSE_DBSTRING ?= $(DATABASE_URL)
|
|
export OUTPUT ?= .build/nomadcode-core
|
|
|
|
.PHONY: run test build docker-up docker-down migrate-up sqlc
|
|
|
|
run:
|
|
./bin/run
|
|
|
|
test:
|
|
./bin/test
|
|
|
|
build:
|
|
./bin/build
|
|
|
|
docker-up:
|
|
./bin/docker-up
|
|
|
|
docker-down:
|
|
./bin/docker-down
|
|
|
|
migrate-up:
|
|
./bin/migrate-up
|
|
|
|
sqlc:
|
|
./bin/sqlc
|