forked from aDevildog/Tacnet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
30 lines (23 loc) · 927 Bytes
/
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
setup: development
development:
virtualenv venv
venv/bin/pip install -r requirements.txt
echo "from development import *" > system/settings/local.py
export DJANGO_SETTINGS_MODULE=settings
venv/bin/python system/manage.py collectstatic --noinput --clear
venv/bin/python system/manage.py syncdb --migrate
production:
venv/bin/pip install -r requirements.txt
venv/bin/pip install psycopg2 python-memcached newrelic
echo "from production import *" > system/settings/local.py
export DJANGO_SETTINGS_MODULE=settings
venv/bin/python system/manage.py collectstatic --noinput --clear
venv/bin/python system/manage.py syncdb --migrate
use:
source venv/bin/activate
update:
git fetch && git reset --hard origin/master
venv/bin/pip install -r requirements.txt
export DJANGO_SETTINGS_MODULE=settings
venv/bin/python system/manage.py collectstatic --noinput --clear
venv/bin/python system/manage.py syncdb --migrate