-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
48 lines (35 loc) · 1.05 KB
/
Makefile
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
44
45
46
47
include _make/paths.mk
run:
# this starts both the django and node development servers
# http://localhost:3000 Javascript development server
# http://localhost:3001 Django development server
kill `lsof -t -i:3000` || true
kill `lsof -t -i:3001` || true
gulp & python ./codekitchen/manage.py runserver 3001
shell:
python ./codekitchen/manage.py shell_plus --ipython
notebook:
python ./codekitchen/manage.py shell_plus --notebook
clean:
# this command removes all compiled python files
# and files created by javascript development
find . -name "*.pyc" -exec rm -rf {} \;
install:
# this command installs all python and javascript packages required for
# development
pip install -r ./requirements.txt
npm install
script:
# run a script
python ./codekitchen/manage.py runscript $(run)
build:
python ./codekitchen/manage.py collectstatic --noinput
bundle:
git archive HEAD --format=zip > ./versions/latest.zip
pre-deploy:
make build
make bundle
include _make/db.mk
include _make/deploy.mk
include _make/server.mk
include _make/test.mk