generate-search.sh

_scripts/generate-search.sh
#!/bin/bash
echo "🔨 Building site..."
npm run build || exit 1
echo ""
echo "🚀 Starting server..."
npm run start &
SERVER_PID=$!
# Give the server a moment to fail if there's an immediate error
sleep 2
# Check if the server process is still running
if ! ps -p $SERVER_PID > /dev/null 2>&1; then
echo "❌ Server failed to start (process died immediately)"
echo "💡 Check if port 3000 is already in use or if there are other startup errors"
exit 1
fi

Showing the first 20 lines.

Get full code

Support

Talk to the developers of this project to learn more

We have been building professional websites for big clients for over 15 years. Gallop templates and blocks is our best foundation for SEO websites and web apps.

© 2026 Web Plant Media, LLC