From 1336b44a260627edecdcd2b0ea3d601808c9eb55 Mon Sep 17 00:00:00 2001 From: "CanbiZ (MickLesk)" <47820557+MickLesk@users.noreply.github.com> Date: Wed, 5 Aug 2026 00:26:12 +0200 Subject: [PATCH] Heimdall-Dashboard: run full composer install on update, force production env (#16278) --- ct/heimdall-dashboard.sh | 5 ++++- install/heimdall-dashboard-install.sh | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ct/heimdall-dashboard.sh b/ct/heimdall-dashboard.sh index c67bf3343..6c848ee21 100644 --- a/ct/heimdall-dashboard.sh +++ b/ct/heimdall-dashboard.sh @@ -46,8 +46,11 @@ function update_script() { msg_info "Updating Heimdall-Dashboard" cd /opt/Heimdall + sed -i 's/^APP_ENV=.*/APP_ENV=production/' .env + rm -f bootstrap/cache/*.php export COMPOSER_ALLOW_SUPERUSER=1 - $STD composer dump-autoload + $STD composer install --no-dev --no-interaction --prefer-dist --optimize-autoloader + $STD php artisan optimize:clear msg_ok "Updated Heimdall-Dashboard" msg_info "Restoring Data" diff --git a/install/heimdall-dashboard-install.sh b/install/heimdall-dashboard-install.sh index ab44adb99..8258d2347 100644 --- a/install/heimdall-dashboard-install.sh +++ b/install/heimdall-dashboard-install.sh @@ -24,6 +24,7 @@ fetch_and_deploy_gh_release "Heimdall" "linuxserver/Heimdall" "tarball" msg_info "Setting up Heimdall-Dashboard" cd /opt/Heimdall cp .env.example .env +sed -i 's/^APP_ENV=.*/APP_ENV=production/' .env $STD php artisan key:generate msg_ok "Setup Heimdall-Dashboard"