Fixed env stuff

This commit is contained in:
Benjamin Sherriff
2024-05-04 14:00:54 -04:00
parent e497ce243e
commit 345dc105df
6 changed files with 32 additions and 15 deletions

View File

@@ -1,7 +1,11 @@
#!make
SHELL := /bin/bash
GIT_HASH ?= $(shell git log --format="%h" -n 1)
export VERSION=$(if $(v),$(v),latest)
include .env
-include .env.local
export
.PHONY: help build test up down exec clean
@@ -16,8 +20,20 @@ up: ## Start the backend containers
down: ## Stop the backend containers
@docker compose --profile backend down
run: ## Run the app
run: ## Run the project
@echo "Running project..."
@cargo run
@echo "Run complete"
format: ## Format code
@echo "Formatting code..."
@cargo fmt
@echo "Format complete"
clean: ## Clean the project
@echo "Cleaning project..."
@cargo clean
@echo "Clean complete"
docker-up: ## Start the app
@docker compose --profile backend --profile siren up -d
@@ -28,7 +44,7 @@ docker-down: ## Stop the app
docker-build: ## Build the docker image
@docker compose build
clean: ## Clean the app
docker-clean: ## Clean the app
@docker compose down && \
docker image rm siren-service || \
docker network rm siren_frontend || \