set -e | |
# Start API server in background | |
cd /app/api | |
gunicorn --bind 0.0.0.0:5001 \ | |
--workers 1 \ | |
--worker-class gevent \ | |
--timeout 200 \ | |
--preload \ | |
app:app & | |
# Start web server | |
cd /app/web | |
npm start | |
# Keep container running | |
wait |
set -e | |
# Start API server in background | |
cd /app/api | |
gunicorn --bind 0.0.0.0:5001 \ | |
--workers 1 \ | |
--worker-class gevent \ | |
--timeout 200 \ | |
--preload \ | |
app:app & | |
# Start web server | |
cd /app/web | |
npm start | |
# Keep container running | |
wait |