add reset target to make file
This commit is contained in:
@@ -23,6 +23,9 @@ dev-db: test-db-up test-db-wait test-db-migrate ## Start PostgreSQL for developm
|
||||
@echo "PostgreSQL is running on port 5433"
|
||||
@echo "Connection string: $(TEST_DATABASE_URL)"
|
||||
|
||||
.PHONY: dev-db-restart
|
||||
dev-db-restart: clean-db dev-db
|
||||
|
||||
# --- Docker Compose Targets ---
|
||||
.PHONY: test-db-up
|
||||
test-db-up: ## Start the PostgreSQL test database in the background
|
||||
|
||||
@@ -50,6 +50,7 @@ make build-pg # Build with PostgreSQL
|
||||
make psql # Connect to running PostgreSQL
|
||||
make clean # Clean build artifacts
|
||||
make clean-db # Stop database and clean volumes
|
||||
make dev-db-restart # Stop database, clean volumes, rebuild test database and restart
|
||||
```
|
||||
|
||||
## Environment Variables
|
||||
|
||||
@@ -23,6 +23,9 @@ dev-db: test-db-up test-db-wait test-db-migrate ## Start PostgreSQL for developm
|
||||
@echo "PostgreSQL is running on port 5433"
|
||||
@echo "Connection string: $(TEST_DATABASE_URL)"
|
||||
|
||||
.PHONY: dev-db-restart
|
||||
dev-db-restart: clean-db dev-db
|
||||
|
||||
# --- Docker Compose Targets ---
|
||||
.PHONY: test-db-up
|
||||
test-db-up: ## Start the PostgreSQL test database in the background
|
||||
|
||||
Reference in New Issue
Block a user