tubesync/Makefile

34 lines
545 B
Makefile
Raw Permalink Normal View History

python=/usr/bin/env python
docker=/usr/bin/docker
name=tubesync
image=$(name):latest
all: clean build
dev:
2021-10-15 09:17:26 +00:00
$(python) tubesync/manage.py runserver
build:
2021-10-15 09:17:26 +00:00
mkdir -p tubesync/media
mkdir -p tubesync/static
$(python) tubesync/manage.py collectstatic --noinput
clean:
2021-10-15 09:17:26 +00:00
rm -rf tubesync/static
container: clean
$(docker) build -t $(image) .
runcontainer:
2020-12-13 05:13:30 +00:00
$(docker) run --rm --name $(name) --env-file dev.env --log-opt max-size=50m -ti -p 4848:4848 $(image)
test: build
2021-04-04 12:16:22 +00:00
cd tubesync && $(python) manage.py test --verbosity=2 && cd ..