remove the local server from the Makefile
For improved consistency it's better if I only develop in Docker with Postgres instead of the local server with sqlite
This commit is contained in:
parent
43c334745d
commit
3cf672edea
23
Makefile
23
Makefile
|
@ -13,29 +13,6 @@ venv/bin/activate: requirements/local.txt
|
|||
. venv/bin/activate; pip3 install wheel; pip3 install -Ur requirements/local.txt
|
||||
touch venv/bin/activate
|
||||
|
||||
local:
|
||||
python3 -m venv venv
|
||||
( \
|
||||
source venv/bin/activate; \
|
||||
pip3 install -r requirements/local.txt; \
|
||||
export DJANGO_SETTINGS_MODULE=network_inventory.settings.local; \
|
||||
./run.sh; \
|
||||
)
|
||||
|
||||
.remove_db:
|
||||
rm -f ./network_inventory/network_inventory/db.sqlite3
|
||||
|
||||
local_restart: .remove_db local
|
||||
|
||||
local_test:
|
||||
( \
|
||||
export DJANGO_SETTINGS_MODULE=network_inventory.settings.local; \
|
||||
source venv/bin/activate; \
|
||||
cd network_inventory/inventory/tests/; \
|
||||
pytest; \
|
||||
)
|
||||
|
||||
clean: .remove_db
|
||||
rm -rf venv/
|
||||
sudo find . \( -name __pycache__ -o -name "*.pyc" \) -delete
|
||||
docker-compose down -v --rmi local
|
||||
|
|
Loading…
Reference in New Issue