nomadcode/Makefile

34 lines
752 B
Makefile

export APP_ENV ?= local
export HTTP_ADDR ?= :8080
export DATABASE_URL ?= postgres://nomadcode:nomadcode@code-server-postgres:5432/nomadcode-core-local?sslmode=disable
export REDIS_URL ?= redis://code-server-redis:6379/3
export REDIS_KEY_PREFIX ?= nomadcode-core:local
export DEV_REDIS_URL ?= redis://code-server-redis:6379/4
export DEV_REDIS_KEY_PREFIX ?= nomadcode-core:dev
export AUTH_USERNAME ?= nomadcode
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