18 lines
469 B
Makefile
18 lines
469 B
Makefile
|
.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
|