-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
54 lines (42 loc) · 1.15 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
48
49
50
51
52
53
54
REPORTER = spec
##################################
# start
##################################
start:
@DEBUG=diogenis ./bin/www
start-production:
@DEBUG=diogenis ./node_modules/forever/bin/forever start -a \
-l diogenis-production.log \
-o diogenis-out-production.log \
-e diogenis-error-production.log ./bin/www &
#################################
# db
#################################
db-create-development:
@./scripts/db.sh development
@make db-update
@make defaultdata
db-create:
@./scripts/db.sh production
@make defaultdata-production
db-update:
@./scripts/db.sh db-update
#################################
# install
################################
install:
@npm install
defaultdata:
@./scripts/db.sh defaultdata
defaultdata-production:
@./scripts/db.sh defaultdata-production
check:
@./node_modules/.bin/jshint --verbose --extra-ext .json . ; if [ $$? -eq 0 ] ; then echo "Done. Clean!" ; fi
test:
@./scripts/mocha.sh $(REPORTER)
@./scripts/db.sh use-sample
tools:
@./scripts/tools.sh
help:
@./scripts/help.sh
.PHONY: start start-production install defaultdata db-create db-create-development check test help tools defaultdata-production