forked from couchbase/cbmonitor
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (24 loc) · 660 Bytes
/
Copy pathMakefile
File metadata and controls
28 lines (24 loc) · 660 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
build:
virtualenv -p python2.7 env
env/bin/pip install --cache-dir /tmp/pip -r requirements.txt
clean:
rm -f `find . -name *.pyc`
flake8:
env/bin/flake8 webapp
run:
env/bin/python webapp/manage.py syncdb
env/bin/python webapp/manage.py runserver 0.0.0.0:8000
runfcgi:
kill `cat /tmp/cbmonitor.pid` || true
env/bin/python webapp/manage.py syncdb --noinput
env/bin/python webapp/manage.py runfcgi \
method=prefork \
maxchildren=8 \
minspare=2 \
maxspare=4 \
outlog=/tmp/cbmonitor.stdout.log \
errlog=/tmp/cbmonitor.stderr.log \
socket=/tmp/cbmonitor.sock \
pidfile=/tmp/cbmonitor.pid
chmod a+rw /tmp/cbmonitor.sock
nginx -s reload