This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

feat: update dev script to run app and feed worker concurrently

Co-authored-by: aider (anthropic/claude-sonnet-4-20250514) <aider@aider.chat>

+1 -18
+1 -1
package.json
··· 27 27 "dev:worker:feeds": "dotenv -e .env.local -- concurrently -k -n TYPE,WORKER -c red,green \"tsc --noEmit --watch\" \"tsup --watch --onSuccess='node dist/workers/feed-worker.js'\"", 28 28 "dev:mock": "USE_MOCK_REPOS=true USE_FAKE_PUBLISHERS=true USE_MOCK_AUTH=true npm run dev:inner", 29 29 "dev:mock:pub:auth": "USE_FAKE_PUBLISHERS=true USE_MOCK_AUTH=true npm run dev", 30 - "dev": "bash ./scripts/dev.sh", 30 + "dev": "concurrently -k -n APP,WORKER -c blue,green \"bash ./scripts/dev.sh\" \"bash ./scripts/dev-feed-worker.sh\"", 31 31 "migrate": "node dist/scripts/migrate.js", 32 32 "lexgen": "lex gen-server ./src/modules/atproto/infrastructure/lexicon ./src/modules/atproto/infrastructure/lexicons/*", 33 33 "db:start": "docker run --name annos-postgres -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=postgres -e POSTGRES_DB=annotations -p 5432:5432 -d postgres:14",
-17
scripts/dev.sh
··· 16 16 DB_RUNNING=false 17 17 fi 18 18 19 - # Check if the Redis container is running 20 - if [ "$(docker ps -q -f name=annos-redis)" ]; then 21 - echo "Redis container is already running." 22 - REDIS_RUNNING=true 23 - else 24 - echo "Starting Redis container..." 25 - npm run redis:start 26 - REDIS_RUNNING=false 27 - fi 28 19 29 20 # Trap SIGINT and SIGTERM to stop containers on exit, only if we started them 30 21 function cleanup { ··· 33 24 echo "Stopping Postgres container..." 34 25 npm run db:stop 35 26 npm run db:remove 36 - fi 37 - fi 38 - 39 - if [ "$REDIS_RUNNING" = false ]; then 40 - if [ "$(docker ps -q -f name=annos-redis)" ]; then 41 - echo "Stopping Redis container..." 42 - npm run redis:stop 43 - npm run redis:remove 44 27 fi 45 28 fi 46 29 }