fix redirect url to port
This commit is contained in:
52
debug-assets.sh
Executable file
52
debug-assets.sh
Executable file
@@ -0,0 +1,52 @@
|
||||
#!/bin/bash
|
||||
|
||||
# CKB Asset Debugging Script
|
||||
echo "🔍 CKB Asset Debugging..."
|
||||
|
||||
echo "🔧 Checking APP_URL configuration:"
|
||||
docker-compose -f docker-compose.prod.yml exec app php artisan config:show app.url
|
||||
|
||||
echo ""
|
||||
echo "📁 Checking public directory structure:"
|
||||
docker-compose -f docker-compose.prod.yml exec app ls -la /var/www/html/public/
|
||||
|
||||
echo ""
|
||||
echo "📁 Checking CSS files:"
|
||||
docker-compose -f docker-compose.prod.yml exec app ls -la /var/www/html/public/css/
|
||||
|
||||
echo ""
|
||||
echo "📁 Checking JS files:"
|
||||
docker-compose -f docker-compose.prod.yml exec app ls -la /var/www/html/public/js/
|
||||
|
||||
echo ""
|
||||
echo "🌐 Testing CSS file accessibility:"
|
||||
docker-compose -f docker-compose.prod.yml exec app curl -I http://localhost/css/app.css
|
||||
|
||||
echo ""
|
||||
echo "🌐 Testing JS file accessibility:"
|
||||
docker-compose -f docker-compose.prod.yml exec app curl -I http://localhost/js/app.js
|
||||
|
||||
echo ""
|
||||
echo "📝 Checking nginx error logs:"
|
||||
docker-compose -f docker-compose.prod.yml exec nginx-proxy tail -20 /var/log/nginx/error.log
|
||||
|
||||
echo ""
|
||||
echo "📝 Checking app nginx error logs:"
|
||||
docker-compose -f docker-compose.prod.yml exec app tail -20 /var/log/nginx/error.log
|
||||
|
||||
echo ""
|
||||
echo "🔧 Checking nginx configuration:"
|
||||
docker-compose -f docker-compose.prod.yml exec app nginx -t
|
||||
|
||||
echo ""
|
||||
echo "🔧 Checking proxy nginx configuration:"
|
||||
docker-compose -f docker-compose.prod.yml exec nginx-proxy nginx -t
|
||||
|
||||
echo ""
|
||||
echo "📊 Container status:"
|
||||
docker-compose -f docker-compose.prod.yml ps
|
||||
|
||||
echo ""
|
||||
echo "🌐 Testing external access to CSS:"
|
||||
echo "Try accessing: http://localhost:8082/css/app.css"
|
||||
curl -I http://localhost:8082/css/app.css
|
||||
Reference in New Issue
Block a user