-
Notifications
You must be signed in to change notification settings - Fork 20
/
makefile
40 lines (31 loc) · 967 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
npm:
npm install
env:
sudo /usr/local/nginx/sbin/nginx -c /usr/local/etc/nginx/localhost.conf
redis-server &> /dev/null &
/usr/local/sbin/haproxy -D -f /Users/linlei/www/honey-pusher/haproxy.cfg
run:
#@echo kill node process
#@killall -v node
@echo start socket server
@coffee new/socket.run.coffee &> socket.log &
@echo start main server
@coffee new/run.coffee &> server.log &
package:
@echo building...
@coffee -o build new/
#@echo copy view and static
#@cp -rf src/view build/
@cp -rf new/static build/static
@echo copy package.json
@cp package.json build
push113: package
@echo make config file
@mv build/config.113.js build/config.js
@echo git push origin master
@cd build ; git add ./ ; git commit -a -m 'new changes' ; git push origin master
push61: package
@echo make config file
@mv build/config.61.js build/config.js
@echo git push 61 master
@cd build ; git add ./ ; git commit -a -m 'new changes' ; git push 61 master