forked from jsdelivr/bootstrapcdn
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
45 lines (30 loc) · 722 Bytes
/
Makefile
File metadata and controls
45 lines (30 loc) · 722 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
FOREVER=./node_modules/.bin/forever
test:
./node_modules/.bin/mocha ./tests/*_test.js ./tests/**/*_test.js -R spec
setup: logs
npm install
clean:
rm -rf node_modules
run:
node app.js
start:
NODE_ENV=production $(FOREVER) -m 4 -p ./logs -l server.log --append --plain start server.js
stop:
$(FOREVER) stop server.js
restart:
$(FOREVER) restart server.js
status:
$(FOREVER) list
logs:
mkdir logs
nginx/start: nginx.conf
sudo /usr/local/nginx/sbin/nginx -c /home/$(USER)/bootstrap-cdn/nginx.conf
nginx/stop:
sudo pkill -9 nginx
nginx/restart: nginx/stop nginx/start
nginx/reload:
sudo pkill -HUP nginx
nginx.conf:
sed -e "s/CURRENT_USER/$(USER)/g" .nginx.conf > nginx.conf
.PHONY:
# vim: ft=make: