-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (24 loc) · 741 Bytes
/
Makefile
File metadata and controls
31 lines (24 loc) · 741 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
app_dir = /home/feross/www/studynotes.org
# Run the server in development mode
# (this is the default task if `make` is invoked without args)
.PHONY : default
default:
ssh -L 27017:localhost:27017 -N feross@athena &
nodemon --delay 0.4 server.js
# Run the server
.PHONY : run
run:
node server.js
# Trigger a deploy
# (from remote CI server)
# Note: When updating this, manually "git pull" on the CI server so it will see the newest Makefile
.PHONY : trigger
trigger:
ssh feross@future.feross.net -p 44444 make -f /home/feross/www/studynotes.org/Makefile deploy
# Update code and restart server
# (from app server)
.PHONY : deploy
deploy:
cd $(app_dir); git pull
cd $(app_dir); npm rebuild
sudo supervisorctl restart studynotes: