Skip to content

Commit 114cb25

Browse files
author
Angel Rey
committed
debug path
1 parent ae0eddd commit 114cb25

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

bin/deploy.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,5 @@ ssh-add /root/.ssh/monadical.key
1414
cd "$SELFHOSTYOURTECH_ROOT" || exit 1
1515
git checkout "$branch" || exit 1
1616
git 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"

bin/shtool.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)