A social knowledge tool for researchers built on ATProto
1#!/bin/bash
2
3# Source the Redis setup script
4source ./scripts/setup-redis.sh
5
6# Only setup cleanup if not running from combined script
7if [ -z "$COMBINED_SCRIPT" ]; then
8 # Function to handle cleanup
9 cleanup_and_exit() {
10 echo "Cleaning up Redis..."
11 cleanup_redis
12 exit 0
13 }
14
15 # Trap SIGINT and SIGTERM to cleanup on exit
16 trap cleanup_and_exit SIGINT SIGTERM
17fi
18
19# Run the feed worker dev command
20npm run dev:worker:feeds:inner
21
22# Only cleanup if not running from combined script
23if [ -z "$COMBINED_SCRIPT" ]; then
24 cleanup_redis
25fi