-
Notifications
You must be signed in to change notification settings - Fork 7
/
makefile
43 lines (34 loc) · 1.03 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
web:
node_modules/.bin/http-server -p 8000
# One-shot
compile:
node_modules/.bin/coffee --map --bare --compile --output build/ src/
# To compile the MP server
# This takes about 2 seconds, so delay server for a bit
watch:
# coffee --watch --map --bare --compile --output build/ src/
node_modules/.bin/coffee --watch --bare --compile --output build/ src/
server:
node build/Server.js
server_debug:
devtool build/Server.js --watch
client:
node_modules/.bin/watchify -v --debug -t coffeeify --extension=".coffee" src/Client.coffee -o Subspace.js
all:
SUDO_USER=root node_modules/.bin/nf start
setup:
git submodule init
git submodule update
npm install
# OSX only
local_docker: setup
# TODO: see if it's up already
sudo boot2docker down
sudo boot2docker init
sudo boot2docker up
$(sudo boot2docker shellinit)
docker build -t "valor" .
docker run -i -t -p 8000:8000 -p 8080:8080 valor
open http://`sudo boot2docker ip`:8000
local_docker_expose:
sudo boot2docker ssh -L 0.0.0.0:8000:localhost:8000 -L 0.0.0.0:8080:localhost:8080