Files
ds-play/app/run_app.sh
2025-05-11 19:18:28 +03:00

21 lines
517 B
Bash

#!/bin/bash
# Exit immediately if a command exits with a non-zero status
set -e
# Activate the virtual environment
source venv/bin/activate
# Run the Gunicorn server
echo "Starting Gunicorn server..."
python3 run_gunicorn.py &
# Wait for 5 seconds to ensure the server is up
sleep 5
# Launch Chromium in fullscreen and kiosk mode
echo "Launching Chromium in fullscreen and kiosk mode..."
chromium-browser --kiosk --start-fullscreen http://localhost:1025
# Deactivate the virtual environment when done
deactivate