Files
iptv-manager-service/scripts/stop_local_dev.sh
Stefano eaab1ef998
All checks were successful
AWS Deploy on Push / build (push) Successful in 8m29s
Changed project name to be IPTV Manager Service
2025-05-29 16:09:52 -05:00

19 lines
377 B
Bash
Executable File

#!/bin/bash
# Stop FastAPI
if [ -f iptv-manager.pid ]; then
kill $(cat iptv-manager.pid)
rm iptv-manager.pid
echo "Stopped FastAPI"
fi
# Clean up mock auth and database environment variables
unset MOCK_AUTH
unset DB_USER
unset DB_PASSWORD
unset DB_HOST
unset DB_NAME
# Stop PostgreSQL
docker-compose -f docker/docker-compose-db.yml down
echo "Stopped PostgreSQL"