updated makefile to support migrations via docker
This commit is contained in:
parent
dfd77a1253
commit
af5937d1ef
5
makefile
5
makefile
@ -16,7 +16,10 @@ docker-build: ## Generates the docker image
|
|||||||
docker image ls | grep newsbot.collector
|
docker image ls | grep newsbot.collector
|
||||||
|
|
||||||
docker-run: ## Runs the docker compose
|
docker-run: ## Runs the docker compose
|
||||||
docker compose up
|
docker compose --env-file .env up -d
|
||||||
|
|
||||||
|
docker-migrate: ## Runs the migrations stored in the Docker image
|
||||||
|
docker run -it --env-file .env ghcr.io/jtom38/newsbot.collector:master /app/goose --dir "/app/migrations" up
|
||||||
|
|
||||||
migrate-dev: ## Apply sql migrations to dev db
|
migrate-dev: ## Apply sql migrations to dev db
|
||||||
goose -dir "./Newsbot.Collector.Database/Migrations" postgres "host=localhost user=postgres password=postgres dbname=postgres sslmode=disable" up
|
goose -dir "./Newsbot.Collector.Database/Migrations" postgres "host=localhost user=postgres password=postgres dbname=postgres sslmode=disable" up
|
||||||
|
Loading…
Reference in New Issue
Block a user