Stripped out ui/api
This commit is contained in:
50
Makefile
Normal file
50
Makefile
Normal file
@@ -0,0 +1,50 @@
|
||||
#!make
|
||||
SHELL := /bin/bash
|
||||
|
||||
include .env
|
||||
-include .env.local
|
||||
export
|
||||
|
||||
.PHONY: help
|
||||
|
||||
help: ## Help command
|
||||
@echo
|
||||
@cat Makefile | grep -E '^[a-zA-Z\/_-]+:.*?## .*$$' | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
|
||||
@echo
|
||||
|
||||
backend-up: ## Start the backend containers
|
||||
@docker compose --profile backend up -d
|
||||
|
||||
backend-down: ## Stop the backend containers
|
||||
@docker compose --profile backend down
|
||||
|
||||
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
|
||||
|
||||
docker-down: ## Stop the app
|
||||
@docker compose --profile backend --profile siren down
|
||||
|
||||
docker-build: ## Build the docker image
|
||||
@docker compose build
|
||||
|
||||
docker-clean: ## Stop the docker containers and remove volumes
|
||||
@echo "Stopping docker container and removing volumes..."
|
||||
@docker compose --profile backend --profile siren down -v
|
||||
@echo "Docker container stopped and volumes removed"
|
||||
|
||||
docker-refresh: docker-clean backend-up ## Refresh the docker containers
|
||||
Reference in New Issue
Block a user