Something went wrong. Try again.
A social knowledge tool for research trails, built on ATProto semble.so
research-tool social-network tools-for-thought atproto
Something went wrong. Try again.
Shell
at development
1234567891011121314151617181920212223242526#!/bin/bash
# Source both setup scriptssource ./scripts/setup-postgres.shsource ./scripts/setup-redis.sh
# Function to handle cleanup for both servicescleanup_and_exit() { echo "Cleaning up services..." cleanup_postgres cleanup_redis exit 0}
# Trap SIGINT and SIGTERM to cleanup on exittrap cleanup_and_exit SIGINT SIGTERM
# Run both services with concurrentlyconcurrently -k -n APP,WORKER -c blue,green \ "dotenv -e .env.local -- concurrently -k -n TYPE,APP -c red,blue \"tsc --noEmit --watch\" \"tsup --watch --onSuccess='node dist/index.js'\"" \ "dotenv -e .env.local -- concurrently -k -n WORKER -c green \"tsup --watch --onSuccess='node dist/workers/feed-worker.js'\""
# Cleanup after concurrently exitscleanup_postgrescleanup_redis