-
Notifications
You must be signed in to change notification settings - Fork 71
/
Makefile
40 lines (29 loc) · 962 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
31
32
33
34
35
36
37
38
39
40
start:
#@export DEBUG="dbj:*" && forever -w app.js
@export DEBUG="dbj* cache*" && supervisor -w 'lib,serve,models,app.js,conf,tasks,Gruntfile.js' -p 1000 app.js
debug:
@export DEBUG="*" && supervisor -w 'lib,serve,models,app.js,conf,tasks,Gruntfile.js' --debug -p 1000 app.js
grunt:
@export DEBUG="dbj*" && grunt
build:
@export NODE_ENV="production" && export DEBUG="dbj:*" && \
npm install --production && \
bower install && \
grunt build --force
watch:
@export DEBUG="dbj:*" && grunt watch
cleanhash:
@grunt clean:hash
init:
@cp -iv ./conf/development.conf.tmpl.js ./conf/development.conf.js
update:
@export NODE_ENV=production && export DEBUG="dbj:* -*:verbose" && ./tools/update.js
toplist:
@export DEBUG="dbj:*" && ./tools/toplist.js
init_bootstrap:
git submodule init
git submodule update
cd ./static/components/bootstrap/ && npm install && make
tail:
@tail -f -n 60 /srv/log/nodejs/doubanj.log
.PHONY: dev watch build deploy