-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
43 lines (35 loc) · 1.17 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
##########################################
# TUXLAB INFRASTRUCTURE #
##########################################
# Setup Development Environment
setup:
"10.100.1.10" >> /etc/resolver/ssh.tuxlab.local;
# Up Vagrantfile
up: destroy
rm ~/.ssh/known_hosts | true;
# git submodule update --recursive --remote;
vagrant up;
# Run Meteor
run:
rm ~/.ssh/known_hosts | true;
vagrant rsync meteor
vagrant ssh meteor --command "cd /tuxlab-sync && /usr/local/bin/meteor npm install && TUXLAB_FIXTURES=true ROOT_URL=http://tuxlab.local:3000 /usr/local/bin/meteor --settings ./private/settings.json";
# Build Application
build:
mkdir -p ./build
cd app && meteor build --verbose ../build
# Test Application
test:
vagrant rsync meteor
vagrant ssh meteor --command "cd /tuxlab-sync && /usr/local/bin/meteor npm install && /usr/local/bin/meteor npm test";
# Access Various Containers
meteor:
vagrant ssh meteor; exit 0;
dswarm:
vagrant ssh dswarm; exit 0;
dhost:
ssh -i ~/.vagrant.d/insecure_private_key -p 2222 -o UserKnownHostsFile=/dev/null vagrant@10.100.1.11; exit 0;
destroy:
vagrant destroy --force;
rm -rf .vagrant/;
.PHONY: build up run test meteor dswarm dhost destroy