#!/bin/bash # Start the first process langflow run --backend-only --env-file /app/.env --host 0.0.0.0 --port 8888 & # Start the second process python3 -m chainlit run app.py --host 0.0.0.0 --port 7860 & # Wait for any process to exit wait -n # Exit with status of process that exited first exit $?