···33# Source the Redis setup script
44source ./scripts/setup-redis.sh
5566+# Function to handle cleanup
77+cleanup_and_exit() {
88+ echo "Cleaning up Redis..."
99+ cleanup_redis
1010+ exit 0
1111+}
1212+613# Trap SIGINT and SIGTERM to cleanup on exit
77-trap cleanup_redis SIGINT SIGTERM
1414+trap cleanup_and_exit SIGINT SIGTERM
815916# Run the feed worker dev command
1017npm run dev:worker:feeds:inner
+8-1
scripts/dev.sh
···33# Source the Postgres setup script
44source ./scripts/setup-postgres.sh
5566+# Function to handle cleanup
77+cleanup_and_exit() {
88+ echo "Cleaning up Postgres..."
99+ cleanup_postgres
1010+ exit 0
1111+}
1212+613# Trap SIGINT and SIGTERM to cleanup on exit
77-trap cleanup_postgres SIGINT SIGTERM
1414+trap cleanup_and_exit SIGINT SIGTERM
815916# Run the dev command
1017npm run dev:app:inner