updated makefile to support migrations via docker

This commit is contained in:
James Tombleson 2023-03-13 21:59:03 -07:00
parent dfd77a1253
commit af5937d1ef
1 changed files with 4 additions and 1 deletions

View File

@ -16,7 +16,10 @@ docker-build: ## Generates the docker image
docker image ls | grep newsbot.collector
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
goose -dir "./Newsbot.Collector.Database/Migrations" postgres "host=localhost user=postgres password=postgres dbname=postgres sslmode=disable" up