-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
29 lines (26 loc) · 873 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
NODE_ENV?=development
NODE_OPTIONS?=''
APP_ENV=development
PORT?=3002
CLUSTER_DISCOVERY_URL?=mongodb://localhost:27017/cluster
CLUSTER_SERVICE?=emailService
TAG?=
start:
NODE_OPTIONS=$(NODE_OPTIONS) \
CLUSTER_DISCOVERY_URL=$(CLUSTER_DISCOVERY_URL) \
CLUSTER_SERVICE=$(CLUSTER_SERVICE) \
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) \
meteor -p $(PORT) --settings ./config/$(APP_ENV)/settings.json
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) \
meteor -p $(PORT) --production --settings ./config/$(APP_ENV)/settings.json