-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
56 lines (48 loc) · 1.69 KB
/
Makefile
File metadata and controls
56 lines (48 loc) · 1.69 KB
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
49
50
51
52
53
54
55
56
NODE_ENV?=development
NODE_OPTIONS?=''
APP_ENV=development
PORT?=3100
CLUSTER_DISCOVERY_URL?=mongodb://localhost:27017/cluster
CLUSTER_SERVICE?=imports
TAG?=
SERVER=$(shell curl ipecho.net/plain)
start:
NODE_OPTIONS=$(NODE_OPTIONS) \
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
start-public:
NODE_OPTIONS=$(NODE_OPTIONS) \
CLUSTER_DISCOVERY_URL=$(CLUSTER_DISCOVERY_URL) \
CLUSTER_SERVICE=$(CLUSTER_SERVICE) \
CLUSTER_PUBLIC_SERVICES=$(CLUSTER_PUBLIC_SERVICES) \
SERVER=$(SERVER) \
meteor -p $(PORT) --settings ./config/$(APP_ENV)/settings.json --mobile-server $(SERVER):$(PORT)
debug-public:
NODE_OPTIONS='--debug' \
CLUSTER_DISCOVERY_URL=$(CLUSTER_DISCOVERY_URL) \
CLUSTER_SERVICE=$(CLUSTER_SERVICE) \
CLUSTER_PUBLIC_SERVICES=$(CLUSTER_PUBLIC_SERVICES) \
SERVER=$(SERVER) \
meteor debug -p $(PORT) --settings ./config/$(APP_ENV)/settings.json --mobile-server $(SERVER):$(PORT)
debug:
NODE_OPTIONS='--debug' \
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) \
CLUSTER_DISCOVERY_URL=$(CLUSTER_DISCOVERY_URL) \
CLUSTER_SERVICE=$(CLUSTER_SERVICE) \
CLUSTER_PUBLIC_SERVICES=$(CLUSTER_PUBLIC_SERVICES) \
meteor -p $(PORT) --production --settings ./config/production/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)