mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-08-26 02:04:49 +00:00
Heimdall-Dashboard: run full composer install on update, force production env (#16278)
This commit is contained in:
committed by
GitHub
parent
419f9e397e
commit
1336b44a26
@@ -46,8 +46,11 @@ function update_script() {
|
|||||||
|
|
||||||
msg_info "Updating Heimdall-Dashboard"
|
msg_info "Updating Heimdall-Dashboard"
|
||||||
cd /opt/Heimdall
|
cd /opt/Heimdall
|
||||||
|
sed -i 's/^APP_ENV=.*/APP_ENV=production/' .env
|
||||||
|
rm -f bootstrap/cache/*.php
|
||||||
export COMPOSER_ALLOW_SUPERUSER=1
|
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_ok "Updated Heimdall-Dashboard"
|
||||||
|
|
||||||
msg_info "Restoring Data"
|
msg_info "Restoring Data"
|
||||||
|
|||||||
@@ -24,6 +24,7 @@ fetch_and_deploy_gh_release "Heimdall" "linuxserver/Heimdall" "tarball"
|
|||||||
msg_info "Setting up Heimdall-Dashboard"
|
msg_info "Setting up Heimdall-Dashboard"
|
||||||
cd /opt/Heimdall
|
cd /opt/Heimdall
|
||||||
cp .env.example .env
|
cp .env.example .env
|
||||||
|
sed -i 's/^APP_ENV=.*/APP_ENV=production/' .env
|
||||||
$STD php artisan key:generate
|
$STD php artisan key:generate
|
||||||
msg_ok "Setup Heimdall-Dashboard"
|
msg_ok "Setup Heimdall-Dashboard"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user