A social knowledge tool for researchers built on ATProto
at main 569 B view raw
1#!/bin/bash 2 3# Source the Postgres setup script 4source ./scripts/setup-postgres.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 Postgres..." 11 cleanup_postgres 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 dev command 20npm run dev:app:inner 21 22# Only cleanup if not running from combined script 23if [ -z "$COMBINED_SCRIPT" ]; then 24 cleanup_postgres 25fi