Spaces:
Sleeping
Sleeping
Upload start.sh
Browse files
start.sh
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
|
| 3 |
+
# Start the first process
|
| 4 |
+
langflow run --backend-only --env-file /app/.env --host 0.0.0.0 --port 8888 &
|
| 5 |
+
|
| 6 |
+
# Start the second process
|
| 7 |
+
python3 -m chainlit run app.py --host 0.0.0.0 --port 7860 &
|
| 8 |
+
|
| 9 |
+
# Wait for any process to exit
|
| 10 |
+
wait -n
|
| 11 |
+
|
| 12 |
+
# Exit with status of process that exited first
|
| 13 |
+
exit $?
|