clean up the run command
This commit is contained in:
parent
f16f2613d4
commit
37315422d6
5
Makefile
5
Makefile
|
@ -4,9 +4,12 @@ SHELL=/usr/bin/env bash
|
||||||
|
|
||||||
.PHONY: run
|
.PHONY: run
|
||||||
run: setup
|
run: setup
|
||||||
|
( \
|
||||||
|
source venv/bin/activate; \
|
||||||
export DJANGO_SETTINGS_MODULE=network_inventory.settings.local; \
|
export DJANGO_SETTINGS_MODULE=network_inventory.settings.local; \
|
||||||
$(find . -name __pycache__ -o -name "*.pyc" -delete) \
|
find . -name __pycache__ -o -name "*.pyc" -delete; \
|
||||||
python manage.py runserver; \
|
python manage.py runserver; \
|
||||||
|
)
|
||||||
|
|
||||||
.PHONY: setup
|
.PHONY: setup
|
||||||
setup: ./venv
|
setup: ./venv
|
||||||
|
|
Loading…
Reference in New Issue