# Start NGINX in the background | |
nginx -g 'daemon off;' | |
# Trap the SIGTERM signal to gracefully stop NGINX | |
trap 'nginx -s quit' SIGTERM | |
# Start the Rasa server | |
rasa run -m models --enable-api --cors "*" --debug --port 5005 & | |
# Start the Rasa Actions server | |
rasa run actions --actions actions --debug --port 5055 & | |
# Wait for processes to finish | |
wait | |