From 251a233b8adc51b38108bf5ef2a670bbc7091e8d Mon Sep 17 00:00:00 2001 From: Dorian Lesbre <dorian.lesbre@gmail.com> Date: Sun, 21 Mar 2021 18:29:07 +0100 Subject: [PATCH] Added host target to makefile --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index f9a7137..3d479c4 100644 --- a/Makefile +++ b/Makefile @@ -21,6 +21,10 @@ migrate: ## Make and run migrations serve: ## Run the django server $(PYTHON) $(MANAGER) runserver +.PHONY: host +host: ## Host localy to access from same netword (make sure to add IP to ALLOWED_HOSTS) + $(PYTHON) $(MANAGER) runserver 0.0.0.0:8000 + .PHONY: start start: install migrate serve ## Install requirements, apply migrations, then start development server -- GitLab