diff --git a/devops/ecosystem.config.js b/devops/frontend/ecosystem.config.js similarity index 100% rename from devops/ecosystem.config.js rename to devops/frontend/ecosystem.config.js diff --git a/devops/local_run/run.sh b/devops/local_run/run.sh new file mode 100644 index 0000000..b1d3d86 --- /dev/null +++ b/devops/local_run/run.sh @@ -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 & \ No newline at end of file diff --git a/devops/local_run/run1.sh b/devops/local_run/run1.sh new file mode 100644 index 0000000..04ad2a9 --- /dev/null +++ b/devops/local_run/run1.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +cd $HOME/dev/oktopus/backend/services/mochi +go run cmd/main.go +echo "" +bash \ No newline at end of file diff --git a/devops/local_run/run2.sh b/devops/local_run/run2.sh new file mode 100644 index 0000000..efffe16 --- /dev/null +++ b/devops/local_run/run2.sh @@ -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 \ No newline at end of file diff --git a/devops/local_run/run3.sh b/devops/local_run/run3.sh new file mode 100644 index 0000000..f16e9cb --- /dev/null +++ b/devops/local_run/run3.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +cd $HOME/dev/oktopus/frontend/ +npm run dev +echo "" +bash \ No newline at end of file diff --git a/devops/local_run/run4.sh b/devops/local_run/run4.sh new file mode 100644 index 0000000..be3a283 --- /dev/null +++ b/devops/local_run/run4.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +cd $HOME/dev/oktopus/backend/services/socketio +npm start +echo "" +bash \ No newline at end of file diff --git a/devops/nginx.conf b/devops/nginx/nginx.conf similarity index 100% rename from devops/nginx.conf rename to devops/nginx/nginx.conf diff --git a/devops/controller.service b/devops/services/controller.service similarity index 100% rename from devops/controller.service rename to devops/services/controller.service diff --git a/devops/mochi.service b/devops/services/mochi.service similarity index 100% rename from devops/mochi.service rename to devops/services/mochi.service diff --git a/devops/socketio.service b/devops/services/socketio.service similarity index 100% rename from devops/socketio.service rename to devops/services/socketio.service