gallery / fix-start-scripts.sh
Hanzo Dev
Add git submodule architecture for templates with Hugging Face integration
366fe97
raw
history blame contribute delete
975 Bytes
#!/bin/bash
# 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!"