almost final app
This commit is contained in:
21
app/run_app.sh
Normal file
21
app/run_app.sh
Normal file
@@ -0,0 +1,21 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user