-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.delixl-aliases
89 lines (78 loc) · 2.99 KB
/
.delixl-aliases
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
alias nep='neptune.sh'
alias snep='start-neptune.sh && tail -f /home/developer/delixl-sw/gigaspaces/logs/neptune-nick.out'
alias dnep='deploy-neptune.sh'
alias unep='undeploy-neptune.sh'
alias rs='run-sol.sh'
alias bw='cd /home/developer/delixl/sol/delixl-webshop && mci'
alias rsl='run-server.sh localhost'
alias rit='run-inttest.sh'
alias ritl='run-inttest.sh localhost-standalone'
alias nps='rlwrap neptune.sh shell 2> /dev/null'
alias us='np exec undeploy saturn 2> /dev/null'
alias up='np exec undeploy pluto 2> /dev/null'
alias uj='np exec undeploy jupiter 2> /dev/null'
alias mci='mvn clean install -q -Dmaven.test.skip=true'
alias mcs='mvn checkstyle:checkstyle'
alias mec='mvn -q -Dmaven.test.skip=true eclipse:clean eclipse:eclipse'
#servers access
alias dxl-acc-ca='ssh [email protected]'
alias dxl-acc-atg1='ssh [email protected]'
alias dxl-acc-atg2='ssh [email protected]'
alias dxl-acc-gs1='ssh [email protected]'
alias dxl-acc-gs2='ssh [email protected]'
alias dxl-test-1='ssh [email protected]'
alias dxl-test-2='ssh [email protected]'
alias dxl-dev-1='ssh [email protected]'
alias dxl-dev-2='ssh [email protected]'
alias dxl-dev-3='ssh [email protected]'
alias dxl-prod-nep1='ssh [email protected]'
alias dxl-prod-nep2='ssh [email protected]'
function tm {
tmux set default-path /home/developer/delixl
cd /home/developer/.cfg
tmux rename-window .cfg
tmux new-window
tmux rename-window neptune
tmux new-window
tmux rename-window sol
tmux select-window -t .cfg
}
function tm-acc-atg {
# 54 window
tmux new-window
tmux rename-window acc-54
tmux split-window -dh 'ssh [email protected]'
tmux send-keys -t right tail\ -f\ /ATG/jboss/jboss-as/server/acc-ps-ps4/log/server.log C-m
tmux split-window -dv 'ssh [email protected]'
tmux send-keys -t bottom-left tail\ -f\ /ATG/jboss/jboss-as/server/acc-ps-ps3/log/server.log C-m
# 53 window
tmux previous-window
tmux rename-window acc-53
tmux split-window -dh 'ssh [email protected]'
tmux send-keys -t right tail\ -f\ /ATG/jboss/jboss-as/server/acc-ps-ps1/log/server.log C-m
tmux split-window -dv 'ssh [email protected]'
tmux send-keys -t bottom-left tail\ -f\ /ATG/jboss/jboss-as/server/acc-ps-ps2/log/server.log C-m
# kill controlling panes
tmux kill-pane -t:acc-54.top-left
tmux kill-pane -t:acc-53.top-left
}
function tm-acc-nep {
tmux rename-window acc-57-58
tmux split-window -dh 'ssh [email protected]'
tmux send-keys -t right tail\ -f\ /ATG/neptune/logs/neptune-acc.out C-m
tmux split-window -dv 'ssh [email protected]'
tmux send-keys -t bottom-left tail\ -f\ /ATG/neptune/logs/neptune-acc.out C-m
# kill controlling pane
tmux kill-pane -t:acc-57-58.top-left
}
function tm-test {
tmux rename-window test-31-50
tmux split-window -dh 'ssh [email protected]'
tmux split-window -dv 'ssh [email protected]'
# kill controlling pane
tmux kill-pane -t:test-31-50.top-left
}
prompt-solarized
if [ -z "$(netstat -lnt | awk '$1 == "tcp" && $6 == "LISTEN" && $4 ~ ".80"')" ]; then
/home/developer/delixl/bin/start-venus.sh
fi