feat(devops): run local shell script + folders organize
This commit is contained in:
parent
689e179f04
commit
1a1d6abcc1
21
devops/local_run/run.sh
Normal file
21
devops/local_run/run.sh
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
#!/bin/bash
|
||||
|
||||
wcorr=68 # manual fix for vertical panels
|
||||
hcorr=26 # manual fix for horizontal panels
|
||||
|
||||
|
||||
tmps=$(LANG=C xrandr|grep -om1 'current.*,')
|
||||
tmps=${tmps/,}
|
||||
tmps=${tmps/current }
|
||||
echo "screen resolution = $tmps pixels"
|
||||
wscr=${tmps/ x*}
|
||||
hscr=${tmps/*x }
|
||||
wter=$(( (wscr-wcorr)/2 ))
|
||||
hter=$(( (hscr-hcorr)/2 ))
|
||||
echo "terminal width = $wter pixels"
|
||||
echo "terminal height = $hter pixels"
|
||||
|
||||
terminator --geometry="${wter}x${hter}+0-0" -x bash run1.sh &
|
||||
terminator --geometry="${wter}x${hter}+0-0" -x bash run2.sh &
|
||||
terminator --geometry="${wter}x${hter}+0-0" -x bash run3.sh &
|
||||
terminator --geometry="${wter}x${hter}+0-0" -x bash run4.sh &
|
||||
6
devops/local_run/run1.sh
Normal file
6
devops/local_run/run1.sh
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
cd $HOME/dev/oktopus/backend/services/mochi
|
||||
go run cmd/main.go
|
||||
echo ""
|
||||
bash
|
||||
6
devops/local_run/run2.sh
Normal file
6
devops/local_run/run2.sh
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
cd $HOME/dev/oktopus/backend/services/controller
|
||||
go run cmd/oktopus/main.go -u root -P root -mongo mongodb://172.16.238.3:27017
|
||||
echo ""
|
||||
bash
|
||||
6
devops/local_run/run3.sh
Normal file
6
devops/local_run/run3.sh
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
cd $HOME/dev/oktopus/frontend/
|
||||
npm run dev
|
||||
echo ""
|
||||
bash
|
||||
6
devops/local_run/run4.sh
Normal file
6
devops/local_run/run4.sh
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
cd $HOME/dev/oktopus/backend/services/socketio
|
||||
npm start
|
||||
echo ""
|
||||
bash
|
||||
Loading…
Reference in New Issue
Block a user