-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
58 lines (32 loc) · 1 KB
/
Makefile
File metadata and controls
58 lines (32 loc) · 1 KB
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
48
49
50
51
52
53
54
55
56
57
58
.PHONY: development requirements.txt requirements-dev.txt manage
PORT=8000
development : env-activate init requirements.txt requirements-dev.txt
production : env-activate init requirements.txt
fxplanet/settings_local.py :
touch fxplanet/settings_local.py
init : fxplanet/settings_local.py
@mkdir -p fxplanet/templates
@mkdir -p fxplanet/static
@mkdir -p fxplanet/static_collected
@mkdir -p fxplanet/media
@mkdir -p var/log
@mkdir -p var/tmp
@mkdir -p var/run
requirements.txt :
(source env/bin/activate && pip install -r $@)
requirements-dev.txt :
(source env/bin/activate && pip install -r $@)
env:
(virtualenv -p python3 env)
env-activate: env
(source env/bin/activate)
runserver:
(source env/bin/activate && python manage.py runserver $(PORT))
migrate:
(source env/bin/activate && python manage.py migrate)
shell:
(source env/bin/activate && python manage.py shell)
makemigrations:
(source env/bin/activate && python manage.py makemigrations)
initialize-postgres:
createdb fxplanet