This repository has been archived on 2021-09-01. You can view files and clone it, but cannot push or open issues or pull requests.
goddit/Makefile

18 lines
469 B
Makefile
Raw Normal View History

.PHONY: postgres adminer migrate
postgres:
docker run --rm -ti --network host -e POSTGRES_PASSWORD=secret postgres
adminer:
docker run --rm -ti --network host adminer
reflex:
reflex -s go run cmd/goddit/main.go
migrate:
migrate -source file://migrations \
-database postgres://postgres:secret@localhost/postgres?sslmode=disable up
migrate-down:
migrate -source file://migrations \
-database postgres://postgres:secret@localhost/postgres?sslmode=disable down