-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathtool.sh
More file actions
executable file
·40 lines (35 loc) · 835 Bytes
/
tool.sh
File metadata and controls
executable file
·40 lines (35 loc) · 835 Bytes
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
#!/bin/bash
function use_dev(){
export NODE_ENV=development&&
export DB_ADDR=192.168.150.40:27017&&
export DB_USER=iris&&
export DB_PASSWD=irispassword&&
export DB_DATABASE=iobscan-iris&&
export LCD_ADDR=http://192.168.150.40:1317&&
env
}
function use_qa(){
export NODE_ENV=development&&
export DB_ADDR=192.168.150.33:37017&&
export DB_USER=csrb&&
export DB_PASSWD=csrbpassword&&
export DB_DATABASE=sync2&&
export LCD_ADDR=http://192.168.150.32:2317&&
env
}
function use_prod(){
export NODE_ENV=development&&
export DB_ADDR=192.168.150.33:37017&&
export DB_USER=csrb&&
export DB_PASSWD=csrbpassword&&
export DB_DATABASE=sync2&&
export LCD_ADDR=http://192.168.150.32:2317&&
env
}
if [ $1 == "d" ] ; then
use_dev
elif [ $1 == "q" ] ; then
use_qa
elif [ $1 == "p" ] ; then
use_prod
fi