@@ -15,7 +15,8 @@ export RACK_ENV=${RACK_ENV:-development}
1515echo " Starting html2rss-web development environment..."
1616echo " Environment: $RACK_ENV "
1717echo " Ruby server: http://localhost:3000"
18- echo " Astro dev server: http://localhost:4321"
18+ echo " Astro dev server: http://localhost:4321 (with live reload)"
19+ echo " Main development URL: http://localhost:4321"
1920echo " "
2021
2122# Function to cleanup background processes
@@ -24,8 +25,10 @@ cleanup() {
2425 echo " Shutting down servers..."
2526 kill $RUBY_PID 2> /dev/null || true
2627 kill $ASTRO_PID 2> /dev/null || true
28+ kill $WATCHER_PID 2> /dev/null || true
2729 wait $RUBY_PID 2> /dev/null || true
2830 wait $ASTRO_PID 2> /dev/null || true
31+ wait $WATCHER_PID 2> /dev/null || true
2932 echo " Servers stopped."
3033 exit 0
3134}
@@ -41,9 +44,11 @@ RUBY_PID=$!
4144# Wait a moment for Ruby server to start
4245sleep 3
4346
44- # Start Astro dev server
45- echo " Starting Astro dev server..."
47+ # Start Astro dev server with API proxy
48+ echo " Starting Astro dev server with API proxy ..."
4649cd frontend
50+
51+ # Start Astro dev server (it will proxy API calls to Ruby server)
4752npm run dev &
4853ASTRO_PID=$!
4954
0 commit comments