feat(appctl): force image rebuilds on up and restart commands

- Append `--build` to docker compose commands to ensure local code changes are automatically applied when restarting or spinning up services.
This commit is contained in:
kiskaadee committed 2026-07-20 12:08:58 -05:00
1 parent 50d7ed3ef3
commit ba11bd5bdd
1 file changed
+2 -2
+2 -2
View File
@@ -178,7 +178,7 @@ case "$COMMAND" in
if [ -z "$APP" ]; then echo "Error: Service name required"; exit 1; fi if [ -z "$APP" ]; then echo "Error: Service name required"; exit 1; fi
load_app_env "$APP" load_app_env "$APP"
echo "🚀 Starting $APP..." echo "🚀 Starting $APP..."
cd "$BASE_DIR/$APP" && docker compose up -d cd "$BASE_DIR/$APP" && docker compose up --build -d
;; ;;
down) down)
if [ -z "$APP" ]; then echo "Error: Service name required"; exit 1; fi if [ -z "$APP" ]; then echo "Error: Service name required"; exit 1; fi
@@ -190,7 +190,7 @@ case "$COMMAND" in
if [ -z "$APP" ]; then echo "Error: Service name required"; exit 1; fi if [ -z "$APP" ]; then echo "Error: Service name required"; exit 1; fi
load_app_env "$APP" load_app_env "$APP"
echo "🔄 Restarting $APP..." echo "🔄 Restarting $APP..."
cd "$BASE_DIR/$APP" && docker compose down && docker compose up -d cd "$BASE_DIR/$APP" && docker compose down && docker compose up --build -d
;; ;;
logs) logs)
if [ -z "$APP" ]; then echo "Error: Service name required"; exit 1; fi if [ -z "$APP" ]; then echo "Error: Service name required"; exit 1; fi