Skip to content

Commit

Permalink
add Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
liamchampton committed Sep 26, 2023
1 parent 0afc467 commit 60911fc
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Define the default target
.DEFAULT_GOAL := help

# Define variables
APP_MODULE := webapp.main:app
HOST := 0.0.0.0

# Define targets
run:
/home/vscode/venv/bin/uvicorn --host $(HOST) $(APP_MODULE) --reload

help:
@echo "Usage: make [target]"
@echo ""
@echo "Targets:"
@echo " run Start the application using uvicorn"
@echo " help use the command 'make run' to start the application"
.PHONY: help

0 comments on commit 60911fc

Please sign in to comment.