-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (22 loc) · 815 Bytes
/
Makefile
File metadata and controls
31 lines (22 loc) · 815 Bytes
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
# Makefile
ifndef PORT
PORT = 8000
endif
VIRTUALENV = venv/
run:
. $(VIRTUALENV)bin/activate; export PYTHONPATH=`pwd`/app/:$(PYTHONPATH) ; python -W ignore::DeprecationWarning manage.py runserver 0.0.0.0:$(PORT)
install: create_virtualenv pip_install setup_db bower_install
create_virtualenv:
# Check if venv folder is already created and create it
if [ ! -d venv ]; then virtualenv $(VIRTUALENV) --no-site-package --distribute --prompt=Dystopia-Tracker; fi
pip_install:
# Install pip dependencies
. $(VIRTUALENV)bin/activate; pip install -r requirements_core.txt
npm_install:
# Install npm packages
npm install
bower_install:
bower install
setup_db:
# setup database
. $(VIRTUALENV)bin/activate; python manage.py syncdb --noinput; . $(VIRTUALENV)bin/activate; python manage.py migrate --all