Files
chorus-ping-blog/dev-start.sh
anthonyrawlins 5e53840371 Implement automated scheduled publishing for blog
- Enhanced blog library to read from both posts/ and scheduled/ directories
- Added publishDate filtering with real-time checking (no cron jobs needed)
- Support for draft posts and recursive directory scanning
- Posts automatically appear when publishDate is reached
- Containerized solution that works without external scheduling
- Added publishDate field to blog types and updated existing scheduled post

Tested and verified:
 Past-dated posts appear automatically
 Future-dated posts remain hidden until publish time
 Draft posts are excluded regardless of date
 Maintains existing functionality for regular posts

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-28 02:09:38 +10:00

30 lines
765 B
Bash
Executable File

#!/bin/bash
# CHORUS Blog Development Server
# Start the Next.js development server for the blog
set -e
echo "🎵 Starting CHORUS Blog development server..."
# Check if we're in the right directory
if [ ! -f "package.json" ]; then
echo "❌ Error: package.json not found. Are you in the blog directory?"
exit 1
fi
# Install dependencies if node_modules doesn't exist
if [ ! -d "node_modules" ]; then
echo "📦 Installing dependencies..."
npm install
fi
# Start the development server
echo "🚀 Starting Next.js development server on port 3025..."
echo "📝 Blog will be available at: http://localhost:3025"
echo "🌍 Production URL will be: https://blog.chorus.services"
echo ""
echo "Press Ctrl+C to stop the server"
echo ""
npm run dev