Download fix-start-scripts.sh from hanzoai/gallery: direct link, hf CLI and curl.
- Browser
- Download file 975 Bytes
-
https://huggingface.co/spaces/hanzoai/gallery/resolve/main/fix-start-scripts.sh
- Command line
-
hf download hf://spaces/hanzoai/gallery/fix-start-scripts.sh
-
curl -L -o fix-start-scripts.sh https://huggingface.co/spaces/hanzoai/gallery/resolve/main/fix-start-scripts.sh
975 Bytes
| # Fix start scripts for all templates | |
| templates=( | |
| "devforge" | |
| "mobilefirst" | |
| "saasify" | |
| "startupkit" | |
| "analyticsdash" | |
| "blog" | |
| "changelog" | |
| "ai-chat" | |
| "search" | |
| "ecommerce" | |
| "api-docs" | |
| ) | |
| for template in "${templates[@]}"; do | |
| dir="templates-repos/$template" | |
| if [ -d "$dir" ]; then | |
| echo "📦 Fixing $template start script..." | |
| cd "$dir" | |
| # Update start script in package.json if it exists | |
| if [ -f package.json ]; then | |
| # Update start script to bind to all interfaces | |
| sed -i '' 's/"start": "next start"/"start": "next start -H 0.0.0.0 -p 3000"/' package.json 2>/dev/null || true | |
| # Commit and push | |
| git add package.json | |
| git commit -m "Fix start script to bind to all interfaces" 2>/dev/null || true | |
| git push hf main --force | |
| echo " ✅ Fixed $template" | |
| else | |
| echo " ⚠️ No package.json in $template" | |
| fi | |
| cd ../.. | |
| fi | |
| done | |
| echo "" | |
| echo "✅ All start scripts fixed!" |