From d388b599738415fd67594449ef71982ed51b9b10 Mon Sep 17 00:00:00 2001 From: Gary Date: Thu, 29 Feb 2024 10:38:46 -0800 Subject: [PATCH] main: modify compose prod file and local and upgrade sh --- notes.md | 6 ++++++ scripts/local_install.sh | 1 + scripts/upgrade.sh | 1 + 3 files changed, 8 insertions(+) diff --git a/notes.md b/notes.md index 799e3fe46..918856c18 100644 --- a/notes.md +++ b/notes.md @@ -41,3 +41,9 @@ # Alpine Linux sudo bash /home/lasthour/lasthourcloud/scripts/local_install.sh sudo bash /home/lasthour/lasthourcloud/scripts/upgrade.sh Running php artisan optimize:clear clears the cached files, preventing potential issues. +composer install (or composer update +php artisan cache: clear +php artisan route: cache +php artisan view: clear +npm cache clean --force +npm i diff --git a/scripts/local_install.sh b/scripts/local_install.sh index a07fc5cad..525c886ec 100644 --- a/scripts/local_install.sh +++ b/scripts/local_install.sh @@ -218,6 +218,7 @@ cp -r /home/lasthour/lasthourcloud/app/Models /data/coolify/ cp -r /home/lasthour/lasthourcloud/app/Livewire /data/coolify/ cp /home/lasthour/lasthourcloud/.coolify-logo /data/coolify/.coolify-logo cp /home/lasthour/lasthourcloud/tailwind.config.js /data/coolify/tailwind/ +cp /home/lasthour/lasthourcloud/resources/views/auth /data/coolify/ chown -R 9999:root /data/coolify chmod -R 700 /data/coolify diff --git a/scripts/upgrade.sh b/scripts/upgrade.sh index 785fab488..9901f20f0 100644 --- a/scripts/upgrade.sh +++ b/scripts/upgrade.sh @@ -19,6 +19,7 @@ cp -R /home/lasthour/lasthourcloud/app/Models /data/coolify/ cp -R /home/lasthour/lasthourcloud/app/Livewire /data/coolify/ cp /home/lasthour/lasthourcloud/.coolify-logo /data/coolify/.coolify-logo cp /home/lasthour/lasthourcloud/tailwind.config.js /data/coolify/tailwind/ +cp /home/lasthour/lasthourcloud/resources/views/auth /data/coolify/ # Merge .env and .env.production. New values will be added to .env sort -u -t '=' -k 1,1 /data/coolify/source/.env /data/coolify/source/.env.production | sed '/^$/d' >/data/coolify/source/.env.temp && mv /data/coolify/source/.env.temp /data/coolify/source/.env