Files
e2b-dev--e2b/api-service/start.sh
T
2023-05-10 00:40:39 +02:00

14 lines
340 B
Bash
Executable File

#!/bin/bash
# Start playground api
cd /playground && exec node lib/server.js &
# Start python app
cd /app && exec poetry run gunicorn --bind 0.0.0.0:$PORT --workers 1 --threads 12 --timeout 0 app:app -k uvicorn.workers.UvicornWorker &
# Wait for any process to exit
wait -n
# Exit with status of process that exited first
exit $?