File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,4 +14,5 @@ ssh-add /root/.ssh/monadical.key
1414cd " $SELFHOSTYOURTECH_ROOT " || exit 1
1515git checkout " $branch " || exit 1
1616git pull --autostash origin " $branch "
17- bash " $SELFHOSTYOURTECH_ROOT /bin/shtool" " redeploy_all" " true"
17+ docker compose up -d
18+ docker compose exec -ti manager shtool " redeploy_all" " true"
Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ function deploy #description 'Deploy an specific service'
100100
101101 # Stop the existing container(s) gracefully
102102 echo " 🛑 Stopping existing $app_name containers..."
103- (cd " $SELFHOSTYOURTECH_ROOT " && echo $PATH && docker compose exec -ti manager shtool stop " $app_name " )
103+ (cd " $SELFHOSTYOURTECH_ROOT " && shtool stop " $app_name " )
104104
105105 # Build if forced or if images don't exist
106106 if [ " $force_rebuild " = true ]; then
@@ -110,7 +110,7 @@ function deploy #description 'Deploy an specific service'
110110
111111 # Start the new container(s)
112112 echo " 🚀 Starting $app_name ..."
113- (cd " $SELFHOSTYOURTECH_ROOT " && docker compose exec -ti manager shtool start " $app_name " )
113+ (cd " $SELFHOSTYOURTECH_ROOT " && shtool start " $app_name " )
114114
115115 echo " ✅ $app_name deployed successfully"
116116
You can’t perform that action at this time.
0 commit comments