19 lines
535 B
Bash
Executable File
19 lines
535 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Start PostgreSQL
|
|
docker-compose -f docker/docker-compose-db.yml up -d
|
|
|
|
# Set mock auth and database environment variables
|
|
export MOCK_AUTH=true
|
|
export DB_USER=postgres
|
|
export DB_PASSWORD=postgres
|
|
export DB_HOST=localhost
|
|
export DB_NAME=iptv_updater
|
|
|
|
nohup uvicorn app.main:app --host 127.0.0.1 --port 8000 > app.log 2>&1 &
|
|
echo $! > iptv-updater.pid
|
|
|
|
echo "Services started:"
|
|
echo "- PostgreSQL running on localhost:5432"
|
|
echo "- FastAPI running on http://127.0.0.1:8000"
|
|
echo "- Mock auth enabled (use token: testuser)" |