This repository has been archived on 2024-05-18. You can view files and clone it, but cannot push or open issues or pull requests.
steamServer/Makefile

19 lines
470 B
Makefile
Raw Permalink 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