https://forge.softwareheritage.org/source/swh-deposit.git
Revision 370f00c6401dd572cbbaf819d8ce674b57245486 authored by Antoine R. Dumont (@ardumont) on 20 October 2019, 12:08:07 UTC, committed by Antoine R. Dumont (@ardumont) on 20 October 2019, 12:08:07 UTC
1 parent 19e290f
Raw File
Tip revision: 370f00c6401dd572cbbaf819d8ce674b57245486 authored by Antoine R. Dumont (@ardumont) on 20 October 2019, 12:08:07 UTC
test_deposit_multipart: Migrate to pytest
Tip revision: 370f00c
Makefile.local
FLAKEFLAGS='--exclude=swh/deposit/manage.py,swh/deposit/settings.py,swh/deposit/migrations/'

MANAGE=python3 -m swh.deposit.manage

db-drop:
	dropdb swh-deposit-dev || return 0

db-create: db-drop
	createdb swh-deposit-dev

db-prepare:
	$(MANAGE) makemigrations

db-migrate:
	$(MANAGE) migrate

db-load-data:
	$(MANAGE) loaddata deposit_data

db-load-private-data: db-load-data
	$(MANAGE) loaddata ../private_data.yaml

run-dev:
	$(MANAGE) runserver

run:
	gunicorn3 -b 127.0.0.1:5006 swh.deposit.wsgi
back to top