-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmakefile
More file actions
35 lines (26 loc) · 1.07 KB
/
Copy pathmakefile
File metadata and controls
35 lines (26 loc) · 1.07 KB
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
REPORTER = spec
PRODPATH = ~/ffxiv/
DEVPATH = ~/ffxiv-dev/
LOGFILE = aethyrnet_`date +'%y-%m-%d_%H.%M'`.log
PROXYLOG = $(PRODPATH)proxy.log
prod:
-NODE_ENV=production forever stop aethyrnet.js
cd $(PRODPATH); NODE_ENV=production forever start -l $(PRODPATH)/log/$(LOGFILE) -a --minUptime 5000 --spinSleepTime 60000 aethyrnet.js
save:
-cd $(DEVPATH); git add .; git commit -a;
commit:
cd $(DEVPATH); git add .; git commit -a; npm version patch; git push;
commit-r:
cd $(DEVPATH); git add .; git commit -a; npm version minor; git push;
cd $(PRODPATH); git pull;
-NODE_ENV=production forever stop aethyrnet.js
cd $(PRODPATH); NODE_ENV=production forever start -l $(LOGFILE) -a --minUptime 5000 --spinSleepTime 60000 aethyrnet.js
dev:
cd $(DEVPATH); NODE_ENV=development nodemon aethyrnet.js
fakedev:
cd $(DEVPATH); NODE_ENV=production nodemon aethyrnet.js
test:
cd $(DEVPATH); NODE_ENV=test mocha --reporter $(REPORTER) --recursive
test-w:
cd $(DEVPATH); NODE_ENV=test mocha --reporter $(REPORTER) --recursive --watch --growl
.PHONY: test test-w dev commit commit-r prod save