Skip to content

Commit de79bde

Browse files
author
Angel Rey
committed
fix stop and start
1 parent 841c2a3 commit de79bde

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

bin/shtool.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ function deploy #description 'Deploy an specific service'
9898

9999
# Stop the existing container(s) gracefully
100100
echo "🛑 Stopping existing $app_name containers..."
101-
docker compose exec -ti manager stop "$app_name"
101+
(cd "$SELFHOSTYOURTECH_ROOT" && docker compose exec -ti manager stop "$app_name")
102102

103103
# Build if forced or if images don't exist
104104
if [ "$force_rebuild" = true ]; then
@@ -108,7 +108,7 @@ function deploy #description 'Deploy an specific service'
108108

109109
# Start the new container(s)
110110
echo "🚀 Starting $app_name..."
111-
docker compose exec -ti manager start "$app_name"
111+
(cd "$SELFHOSTYOURTECH_ROOT" && docker compose exec -ti manager start "$app_name")
112112

113113
echo "$app_name deployed successfully"
114114

0 commit comments

Comments
 (0)