makefile 708 Bytes
Newer Older
João Denis Rodrigues's avatar
João Denis Rodrigues committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
SITE-OWNER = www-data
SITE-OWNER-GROUP = www-data

all:


clean:
	@rm -rf *~ *.pyc *.backup

clean-deploy: clean
	@rm -rf static db.sqlite3

coverage:
	coverage run --source='.' manage.py test
	coverage html
	xdg-open htmlcov/index.html


docs:
	@echo 'ainda não implementado'


deploy:
	python manage.py migrate
	python manage.py collectstatic -v0 --noinput
	chown $(SITE-OWNER):$(SITE-OWNER-GROUP) -R .

clean-docs:
	@rm -rf docs

install:
	apt-get install -y python3-dev
	apt-get install -y python3-pip
	pip3 install -U pip setuptools
	pip3 install -r requirements.txt

install-dev: install
	pip3 install -r requirements-dev.txt

create-db:
	mysql -u root < configure-db.sql
	python3 manage.py migrate