You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
346 B
Makefile
20 lines
346 B
Makefile
PG_URI?=""
|
|
|
|
start-local:
|
|
mkdir -p ./.pg_data && \
|
|
chown $$(id -u):$$(id -g) ./.pg_data && \
|
|
UID=$$(id -u) GID=$$(id -g) docker compose up -d
|
|
.PHONY: start-local
|
|
|
|
stop-local:
|
|
docker compose down
|
|
.PHONY: stop-local
|
|
|
|
river-migrate:
|
|
river migrate-up --database-url $(PG_URI)
|
|
.PHONY: river-migrate
|
|
|
|
db-connect:
|
|
psql $(PG_URI)
|
|
.PHONY: db-connect
|