Files
e2b-dev--e2b/api-service/start.sh
T
2023-03-23 00:26:22 +00:00

14 lines
339 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 8 --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 $?