-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
48 lines (42 loc) · 1.37 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
44
45
46
47
48
NODE_ENV?=development
NODE_OPTIONS?=''
APP_ENV=development
PORT?=5000
MONGO_URL?=mongodb://localhost:27017/plusmore
MONGO_OPLOG_URL?=mongodb://localhost:27017/local
CLUSTER_DISCOVERY_URL?=mongodb://localhost:27017/cluster
CLUSTER_SERVICE?=hotel
CLUSTER_PUBLIC_SERVICES="imports"
TAG?=
start:
NODE_OPTIONS=$(NODE_OPTIONS) \
MONGO_URL=$(MONGO_URL) \
MONGO_OPLOG_URL=$(MONGO_OPLOG_URL) \
CLUSTER_DISCOVERY_URL=$(CLUSTER_DISCOVERY_URL) \
CLUSTER_SERVICE=$(CLUSTER_SERVICE) \
CLUSTER_PUBLIC_SERVICES=$(CLUSTER_PUBLIC_SERVICES) \
meteor -p $(PORT) --settings ./config/$(APP_ENV)/settings.json
debug:
NODE_OPTIONS='--debug' \
MONGO_URL=$(MONGO_URL) \
MONGO_OPLOG_URL=$(MONGO_OPLOG_URL) \
CLUSTER_DISCOVERY_URL=$(CLUSTER_DISCOVERY_URL) \
CLUSTER_SERVICE=$(CLUSTER_SERVICE) \
CLUSTER_PUBLIC_SERVICES=$(CLUSTER_PUBLIC_SERVICES) \
meteor debug -p $(PORT) --settings ./config/$(APP_ENV)/settings.json
start-prod:
NODE_OPTIONS=$(NODE_OPTIONS) \
MONGO_URL=$(MONGO_URL) \
MONGO_OPLOG_URL=$(MONGO_OPLOG_URL) \
CLUSTER_DISCOVERY_URL=$(CLUSTER_DISCOVERY_URL) \
CLUSTER_SERVICE=$(CLUSTER_SERVICE) \
CLUSTER_PUBLIC_SERVICES=$(CLUSTER_PUBLIC_SERVICES) \
meteor -p $(PORT) --production --settings ./config/$(APP_ENV)/settings.json
ddp:
ddp-analyzer-proxy
start-ddp:
DDP_DEFAULT_CONNECTION_URL=http://localhost:3030 \
meteor
tag:
git tag -a $(TAG) -m 'tagging release'
git push origin $(TAG)