From 83097b8772ba355cebbc39ede5bd0d432c04e08d Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 7 Jul 2026 14:52:25 -0600 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20correcci=C3=B3n=20de=20cpanel=20y=20?= =?UTF-8?q?otras=20funciones?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .claude/settings.local.json | 4 +++- .cpanel.yml | 24 ++++++++++++++++++++---- .gitignore | 27 ++++++++++++++++----------- 3 files changed, 39 insertions(+), 16 deletions(-) diff --git a/.claude/settings.local.json b/.claude/settings.local.json index d09ec082..fcd8bc4a 100644 --- a/.claude/settings.local.json +++ b/.claude/settings.local.json @@ -30,7 +30,9 @@ "Bash(git *)", "Bash(dir C:\\\\Proyectos\\\\SistemaEducativoLaravel\\\\public *)", "Bash(findstr \"APP_URL\" \"C:\\\\Proyectos\\\\SistemaEducativoLaravel\\\\.env.example\")", - "Bash(findstr \"APP_URL\" \"C:\\\\Proyectos\\\\SistemaEducativoLaravel\\\\.env\")" + "Bash(findstr \"APP_URL\" \"C:\\\\Proyectos\\\\SistemaEducativoLaravel\\\\.env\")", + "Bash(Select-Object -First 50)", + "PowerShell(git *)" ] } } diff --git a/.cpanel.yml b/.cpanel.yml index e7e30139..9f9ce86b 100644 --- a/.cpanel.yml +++ b/.cpanel.yml @@ -1,8 +1,24 @@ deployment: tasks: - - export DEPLOYPATH=/home/inventario/public_html + - export DEPLOYPATH=/home/inventario - - /bin/cp -R public/build $DEPLOYPATH - - /bin/cp -R public/assets $DEPLOYPATH + # Sync application files to home directory (one level above public_html) + - /bin/rsync -az --exclude='.git' --exclude='node_modules' --exclude='.env' --exclude='public' . $DEPLOYPATH/ - - /opt/cpanel/ea-php83/root/usr/bin/php artisan optimize + # Sync public directory to public_html, preserving storage symlink + - /bin/rsync -az --delete --exclude='storage' public/ $DEPLOYPATH/public_html/ + + # Install PHP dependencies + - /opt/cpanel/ea-php83/root/usr/bin/php /usr/local/bin/composer install --no-dev --optimize-autoloader --no-interaction --working-dir=$DEPLOYPATH + + # Set writable permissions for Laravel + - /bin/chmod -R 755 $DEPLOYPATH/storage + - /bin/chmod -R 755 $DEPLOYPATH/bootstrap/cache + + # Create storage symlink (public_html/storage -> storage/app/public) + - /bin/ln -sfn $DEPLOYPATH/storage/app/public $DEPLOYPATH/public_html/storage + + # Rebuild Laravel caches + - /opt/cpanel/ea-php83/root/usr/bin/php $DEPLOYPATH/artisan optimize:clear + - /opt/cpanel/ea-php83/root/usr/bin/php $DEPLOYPATH/artisan optimize + - /opt/cpanel/ea-php83/root/usr/bin/php $DEPLOYPATH/artisan migrate --force diff --git a/.gitignore b/.gitignore index 3e955473..e5ace9df 100644 --- a/.gitignore +++ b/.gitignore @@ -1,8 +1,14 @@ -*.log -.DS_Store +# Composer dependencies (se instalan en el servidor con composer install) +/vendor/ + +# Environment & secrets .env .env.backup .env.production + +# IDE & editor files +.DS_Store +Thumbs.db .phpactor.json .phpunit.result.cache /.fleet @@ -11,32 +17,31 @@ /.phpunit.cache /.vscode /.zed -/auth.json /.claude +/auth.json + +# Laravel local dev /node_modules /public/hot /public/storage /storage/*.key /storage/pail - Homestead.json Homestead.yaml -Thumbs.db - -# Laravel storage -/storage/*.key +# Laravel storage (content generated at runtime) /storage/app/* !/storage/app/public - /storage/app/public/* !/storage/app/public/.gitignore - /storage/framework/* /storage/logs/* # Livewire temp /storage/app/private/livewire-tmp -# Archivos subidos +# Uploaded files /storage/app/public/documentos + +# Logs +*.log From 3dbec9d9e318299bf0631c9148a8df4108c4757d Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 7 Jul 2026 14:53:38 -0600 Subject: [PATCH 2/2] =?UTF-8?q?fix:=20correcci=C3=B3n=20de=20cpanel=20y=20?= =?UTF-8?q?otras=20funciones?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 3e955473..5da0e43f 100644 --- a/.gitignore +++ b/.gitignore @@ -18,7 +18,7 @@ /public/storage /storage/*.key /storage/pail - +/vendor/ Homestead.json Homestead.yaml Thumbs.db