-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathxrunner
executable file
·49 lines (47 loc) · 2.03 KB
/
xrunner
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
#!/bin/bash
# A shell script to launch different configurations of the meteor app
# export MAIL_URL=smtp://
opt=$1
case $opt in
dev)
NODE_OPTIONS='--debug' meteor --settings .config/settings-dev.json --port 5000
;;
online)
export ROOT_URL=https://schnauze.io/
export DDP_DEFAULT_CONNECTION_URL=https://schnauze.io/
meteor run ios-device --settings .config/settings-dev.json --mobile-server https://schnauze.io:443 --production
;;
prod)
meteor --settings .config/settings.json --port 5000 --production
;;
ios)
meteor run ios --settings .config/settings-dev.json --verbose --port 5000
;;
iosd)
meteor run ios-device --settings .config/settings-dev.json --verbose --port 5000
;;
android)
meteor run android --settings .config/settings-dev.json --verbose --port 5000
;;
androidd)
meteor run android-device --settings .config/settings-dev.json --verbose --port 5000
;;
deploy)
meteor deploy schnauze.io --settings .config/settings.json
;;
build)
meteor build --architecture=os.linux.x86_64 --server https://schnauze.io --mobile-settings .config/settings.json ../schnauze_deploy
;;
*)
echo "Launch shell script utility"
echo "Usage: $0 {dev|build|deploy|ios|iosd|android|androidd}"
echo " dev : Run with node-inspector."
echo " online : Run online."
echo " ios : Run for ios."
echo " iosd : Run for ios-device."
echo " android : Run for android."
echo " androidd : Run for android-device."
echo " deploy : Deploy."
echo " build : Build."
;;
esac