From 85f9e0397ee087db55468175382a3963d29623fc Mon Sep 17 00:00:00 2001 From: yuuki <> Date: Tue, 30 Jul 2024 13:36:17 +0000 Subject: [PATCH] =?UTF-8?q?=E3=82=B5=E3=83=BC=E3=83=90=E3=83=BC=E3=81=8C?= =?UTF-8?q?=E5=81=9C=E6=AD=A2=E3=81=97=E3=81=A6=E3=82=82=E8=87=AA=E5=8B=95?= =?UTF-8?q?=E3=81=A7=E8=B5=B7=E5=8B=95=E3=81=99=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- running-forever/start.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 running-forever/start.sh diff --git a/running-forever/start.sh b/running-forever/start.sh new file mode 100644 index 0000000..bed8aa9 --- /dev/null +++ b/running-forever/start.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +services=( taiko-web litey ) + +for service in ${services[@]}; do + ( + cd "../docker/$service" + tmux kill-session -t "$service" + tmux new-session -s "$service" -d + tmux send-keys -t "$service" "while true; do docker compose down; docker compose up --abort-on-container-exit; done" C-m + ) +done