Fix/cpanel corrupto #6

Merged
ChristianAlejandro merged 3 commits from fix/cpanel-corrupto into main 2026-07-07 20:57:18 +00:00
3 changed files with 39 additions and 16 deletions
Showing only changes of commit 83097b8772 - Show all commits
+3 -1
View File
@@ -30,7 +30,9 @@
"Bash(git *)", "Bash(git *)",
"Bash(dir C:\\\\Proyectos\\\\SistemaEducativoLaravel\\\\public *)", "Bash(dir C:\\\\Proyectos\\\\SistemaEducativoLaravel\\\\public *)",
"Bash(findstr \"APP_URL\" \"C:\\\\Proyectos\\\\SistemaEducativoLaravel\\\\.env.example\")", "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 *)"
] ]
} }
} }
+20 -4
View File
@@ -1,8 +1,24 @@
deployment: deployment:
tasks: tasks:
- export DEPLOYPATH=/home/inventario/public_html - export DEPLOYPATH=/home/inventario
- /bin/cp -R public/build $DEPLOYPATH # Sync application files to home directory (one level above public_html)
- /bin/cp -R public/assets $DEPLOYPATH - /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
+16 -11
View File
@@ -1,8 +1,14 @@
*.log # Composer dependencies (se instalan en el servidor con composer install)
.DS_Store /vendor/
# Environment & secrets
.env .env
.env.backup .env.backup
.env.production .env.production
# IDE & editor files
.DS_Store
Thumbs.db
.phpactor.json .phpactor.json
.phpunit.result.cache .phpunit.result.cache
/.fleet /.fleet
@@ -11,32 +17,31 @@
/.phpunit.cache /.phpunit.cache
/.vscode /.vscode
/.zed /.zed
/auth.json
/.claude /.claude
/auth.json
# Laravel local dev
/node_modules /node_modules
/public/hot /public/hot
/public/storage /public/storage
/storage/*.key /storage/*.key
/storage/pail /storage/pail
Homestead.json Homestead.json
Homestead.yaml Homestead.yaml
Thumbs.db
# Laravel storage (content generated at runtime)
# Laravel storage
/storage/*.key
/storage/app/* /storage/app/*
!/storage/app/public !/storage/app/public
/storage/app/public/* /storage/app/public/*
!/storage/app/public/.gitignore !/storage/app/public/.gitignore
/storage/framework/* /storage/framework/*
/storage/logs/* /storage/logs/*
# Livewire temp # Livewire temp
/storage/app/private/livewire-tmp /storage/app/private/livewire-tmp
# Archivos subidos # Uploaded files
/storage/app/public/documentos /storage/app/public/documentos
# Logs
*.log