Last active
July 23, 2016 16:34
-
-
Save regqueryvalueex/b04118f11d1394f8d53a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.PHONY: reload test syncdb migrate | |
MANAGE=`pwd`/credio/manage.py | |
SETTINGS='core.settings.local' | |
update: | |
@git stash | |
@git pull | |
@make req | |
@make collectstatic | |
@make migrate | |
touch reload_project | |
reload: | |
@make collectstatic | |
touch reload | |
test: | |
cd credio &&\ | |
DJANGO_SETTINGS_MODULE=$(SETTINGS) ./manage.py test | |
#flake8 --exclude '*migrations*' apps fortytwo_test_task | |
run: | |
DJANGO_SETTINGS_MODULE=$(SETTINGS) $(MANAGE) runserver 0.0.0.0:8880 | |
_makemigrations: | |
DJANGO_SETTINGS_MODULE=$(SETTINGS) $(MANAGE) makemigrations | |
migrate: | |
DJANGO_SETTINGS_MODULE=$(SETTINGS) $(MANAGE) migrate | |
collectstatic: | |
DJANGO_SETTINGS_MODULE=$(SETTINGS) $(MANAGE) collectstatic --noinput | |
req: | |
@echo "Installing requirements" | |
@pip install --exists-action=s -r requirements.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Important!
You must use tabs instead of spaces